From 444e15aa9a51397aff5b100fadc3e3c4899614aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Sieroci=C5=84ski?= Date: Fri, 30 Aug 2019 08:06:35 +0200 Subject: [PATCH] First commit --- .editorconfig | 21 +++++++++++++++++++++ .gitignore | 2 ++ Dockerfile | 44 ++++++++++++++++++++++++++++++++++++++++++++ LICENSE | 15 +++++++++++++++ README.md | 27 +++++++++++++++++++++++++++ entrypoint.sh | 2 ++ 6 files changed, 111 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 LICENSE create mode 100644 README.md create mode 100755 entrypoint.sh diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..bb1da45 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +# +# EditorConfig +# +# This file helps maintain consistent coding styles for multiple developers +# working on the same project across various editors and IDEs +# +# https://EditorConfig.org +# + +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ce3e8d3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea/* +.vscode/* diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..027f819 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,44 @@ +# bitbar/ubuno + +# based on Ubuntu 18.04 LTS +FROM ubuntu:bionic + +LABEL vendor="Bitbar Inc" \ + description="Ubuntu LTS based Docker image with Node.js" + +ENV TERM=xterm-256color \ + PATH="$PATH:/usr/local/bin" + +# set timezone +ENV TZ=Etc/UTC +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + +# installing apt packages +RUN apt-get update +RUN apt-get dist-upgrade -y +RUN apt-get install -qy -o APT::Install-Recommend=false -o APT::Install-Suggests=false \ + build-essential gcc \ + apt-transport-https \ + apt-utils \ + ca-certificates \ + tree \ + git \ + curl \ + wget \ + tzdata + +# install Node.js 10.x LTS +RUN curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh && \ + bash nodesource_setup.sh && \ + apt-get install nodejs -y && \ + rm nodesource_setup.sh + +# confd +ADD https://github.com/kelseyhightower/confd/releases/download/v0.16.0/confd-0.16.0-linux-amd64 /usr/local/bin/confd +RUN chmod +x /usr/local/bin/confd + +# entrypoint +COPY entrypoint.sh /usr/local/bin/entrypoint.sh +RUN chmod +x /usr/local/bin/entrypoint.sh + +ENTRYPOINT ["entrypoint.sh"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0234764 --- /dev/null +++ b/LICENSE @@ -0,0 +1,15 @@ +ISC License + +Copyright (c) 2019, Bitbar Inc + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..fe2b29a --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# ubuno + +(Ubu)ntu based Docker image with (No)de.js. + +## Info + +* Based on Ubuntu LTS (18.04) +* Node.js LTS (10) +* Python 2.7 (installed by Node.js installer) +* [confd](https://github.com/kelseyhightower/confd) onboard +* other tools: + + * curl + * wget + * git + * gcc (helpful for some node packages - eg. node-gyp) + * tree + +## Changelog + +* **1.0.0** + + * First public version + +## License + +[ISC License](LICENSE) diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..0b68c6a --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,2 @@ +#!/bin/bash +exec $@