├── .dockerignore ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── VERSION └── circle.yml /.dockerignore: -------------------------------------------------------------------------------- 1 | .git 2 | circle.yml 3 | LICENSE 4 | VERSION 5 | README.md 6 | Changelog.md 7 | Makefile 8 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:xenial-20180525 2 | MAINTAINER sameer@damagehead.com 3 | 4 | RUN echo 'APT::Install-Recommends 0;' >> /etc/apt/apt.conf.d/01norecommends \ 5 | && echo 'APT::Install-Suggests 0;' >> /etc/apt/apt.conf.d/01norecommends \ 6 | && apt-get update \ 7 | && DEBIAN_FRONTEND=noninteractive apt-get install -y vim.tiny wget sudo net-tools ca-certificates unzip apt-transport-https \ 8 | && rm -rf /var/lib/apt/lists/* 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Sameer Naik 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | all: build 2 | 3 | build: 4 | @docker build --tag=sameersbn/ubuntu:latest . 5 | 6 | release: build 7 | @docker build --tag=sameersbn/ubuntu:$(shell cat VERSION) . 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Circle CI](https://circleci.com/gh/sameersbn/docker-ubuntu.svg?style=svg)](https://circleci.com/gh/sameersbn/docker-ubuntu) [![Docker Repository on Quay.io](https://quay.io/repository/sameersbn/ubuntu/status "Docker Repository on Quay.io")](https://quay.io/repository/sameersbn/ubuntu) 2 | 3 | # About 4 | 5 | Dockerfile to build a ubuntu:16.04 baseimage with a couple of extra packages. 6 | 7 | The image is built on top of the most recently tagged `ubuntu:16.04` image and installs the following extra packages: 8 | 9 | - `vim.tiny` 10 | - `wget` 11 | - `sudo` 12 | - `net-tools` 13 | - `ca-certificates` 14 | - `unzip` 15 | 16 | The packages are selected based on the criteria that they are commonly used and that they do not influence the size of the resulting image too much. 17 | 18 | Additionally `apt` is configured to **NOT** install `recommended` and `suggested` packages. 19 | -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 16.04.20180706 2 | -------------------------------------------------------------------------------- /circle.yml: -------------------------------------------------------------------------------- 1 | machine: 2 | services: 3 | - docker 4 | dependencies: 5 | cache_directories: 6 | - "~/docker-ubuntu" 7 | override: 8 | - docker info 9 | - if [[ -e ~/docker-ubuntu/image.tar ]]; then docker load --input ~/docker-ubuntu/image.tar; fi 10 | - docker build -t sameersbn/ubuntu . 11 | - mkdir -p ~/docker-ubuntu; docker save --output ~/docker-ubuntu/image.tar sameersbn/ubuntu 12 | test: 13 | override: 14 | - docker run -it sameersbn/ubuntu echo "Hello World" 15 | --------------------------------------------------------------------------------