diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..aa177f19e42563eb87eb420389447b3b8bd11c91 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +* +!*.list diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..3e66e1d5821e755498f864e372ae1dbe23c29414 --- /dev/null +++ b/.gitignore @@ -0,0 +1,49 @@ +~* +*~ +*.sw[op] +*.py[cod] +.DS_Store +__pycache__/ +.vagrant/ +vendor/ +Thumbs.db +*.retry +.svn/ +.sass-cache/ +*.log +*.out +*.so +node_modules/ +.npm/ +nbproject/ +*.ipynb +.idea/ +*.egg-info/ +*.[ao] +.classpath +.cache/ +bower_components/ +*.class +*.[ewj]ar +secring.* +.*.kate-swp +.swp.* +.directory +.Trash-* +build/ +_build/ +dist/ +.tox/ +*.pdf +*.exe +*.dll +*.gz +*.tgz +*.tar +*.rar +*.zip +*.pid +*.lock +*.env +.bundle/ +!Pipfile.lock diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..db7ef4387fe2d671a0bb4e0df764be7747bb043d --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,24 @@ +# vim:ff=unix ts=2 sw=2 ai expandtab +--- +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.2.3 + hooks: + - id: check-added-large-files + - id: check-merge-conflict + - id: detect-private-key + - id: trailing-whitespace + - repo: https://github.com/adrienverge/yamllint + rev: v1.16.0 + hooks: + - id: yamllint + - repo: https://github.com/amperser/proselint + rev: 0.10.2 + hooks: + - id: proselint + types: [plain-text] + exclude: LICENSE + - repo: https://www.shore.co.il/git/docker-pre-commit + rev: v0.3.0 + hooks: + - id: hadolint diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..558d4aae3964ac8cdfb6d2aed98e00d15b5a1d3a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM buildpack-deps:bionic +RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BF36996C4E1F8A59 +COPY --chown=root:root *.list /etc/apt/sources.list.d/ +# hadolint ignore=DL3008,DL3015 +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y --auto-remove --purge && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y \ + elementary-sdk \ + && \ + rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/ssl/private/ssl-cert-snakeoil.key diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..17196c5e9c0a73784b3bb2ba6299933de5c80980 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Adar Nimrod + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..a18be7d5d5ac906ab3b060e5d5b981c179496ee5 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# Elementary OS build image + +> An Elementary OS image for building applications in a container. + +## License + +This software is licensed under the MIT license (see `LICENSE.txt`). + +## Author Information + +Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website]( +https://www.shore.co.il/). Patches are welcome via [`git send-email`]( +http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located +at: <https://www.shore.co.il/git/>. diff --git a/elementary.list b/elementary.list new file mode 100644 index 0000000000000000000000000000000000000000..e68e12aeea4c0797ba07c6d8d2f8092c92206f8c --- /dev/null +++ b/elementary.list @@ -0,0 +1,2 @@ +deb http://ppa.launchpad.net/elementary-os/stable/ubuntu bionic main +deb-src http://ppa.launchpad.net/elementary-os/stable/ubuntu bionic main diff --git a/patches.list b/patches.list new file mode 100644 index 0000000000000000000000000000000000000000..3ef42e90b87651f2f04dcac09a23005ca396918c --- /dev/null +++ b/patches.list @@ -0,0 +1,2 @@ +deb http://ppa.launchpad.net/elementary-os/os-patches/ubuntu bionic main +deb-src http://ppa.launchpad.net/elementary-os/os-patches/ubuntu bionic main