1
0
mirror of https://github.com/phusion/baseimage-docker.git synced 2026-03-26 04:18:46 +00:00

Compare commits

...

10 Commits

Author SHA1 Message Date
Hongli Lai (Phusion)
6052c7a3e7 Merge branch 'next' 2015-12-08 12:31:34 +01:00
Hongli Lai (Phusion)
bfd971a084 Fix test runner: obtain container IP with 'docker inspect' 2015-12-08 12:25:42 +01:00
Hongli Lai (Phusion)
d141556910 Bump version to 0.9.18 2015-12-08 12:01:06 +01:00
Hongli Lai (Phusion)
19d67d820c Update Changelog 2015-12-08 11:59:53 +01:00
Hongli Lai
14ec533a16 Merge pull request #235 from endersonmaia/PR-182-fix
Fixed bug introduced in PR-182
2015-07-16 09:01:32 +02:00
Hongli Lai
784d9837ee Merge pull request #236 from endersonmaia/fix-README
Fix README changed on PR-182
2015-07-15 22:44:28 +02:00
Enderson Maia
d3f2382c73 Fix README changed on PR-182
There no point in changing the build process of an image based on this
baseimage, since the services would be already installed (or note) on
the original image. The point for optional services installation is
just useful when build your own image based on this baseimage source
repository, change the `image/buildconfig` file.
2015-07-15 17:34:35 -03:00
Enderson Maia
e053f04cf6 Fixed bug introduced in PR-182
If you disable the installation of all services, you could have a != 0
output, and break the `docker build` process.
2015-07-15 17:31:01 -03:00
Hongli Lai (Phusion)
bbc639b372 Update imagelayers.io image: show size for 0.9.17 2015-07-15 22:17:08 +02:00
Hongli Lai (Phusion)
f8c4992d03 Touch README.md to refresh imagelayers.io image 2015-07-15 22:14:36 +02:00
5 changed files with 17 additions and 38 deletions

View File

@@ -1,3 +1,8 @@
## 0.9.18 (release date: 2015-12-08)
* The latest OpenSSL updates have been pulled in. This fixes [CVE-2015-3193](https://www.openssl.org/news/secadv/20151203.txt) and a few others. Upgrading is strongly recommended.
## 0.9.17 (release date: 2015-07-15) ## 0.9.17 (release date: 2015-07-15)
* The latest OpenSSL updates have been pulled in. This fixes [CVE-2015-1793](http://openssl.org/news/secadv_20150709.txt). Upgrading is strongly recommended. * The latest OpenSSL updates have been pulled in. This fixes [CVE-2015-1793](http://openssl.org/news/secadv_20150709.txt). Upgrading is strongly recommended.

View File

@@ -1,5 +1,5 @@
NAME = phusion/baseimage NAME = phusion/baseimage
VERSION = 0.9.17 VERSION = 0.9.18
.PHONY: all build test tag_latest release ssh .PHONY: all build test tag_latest release ssh

View File

@@ -1,6 +1,6 @@
# A minimal Ubuntu base image modified for Docker-friendliness # A minimal Ubuntu base image modified for Docker-friendliness
[![](https://badge.imagelayers.io/phusion/baseimage:latest.svg)](https://imagelayers.io/?images=phusion/baseimage:latest 'Get your own badge on imagelayers.io') [![](https://badge.imagelayers.io/phusion/baseimage:0.9.17.svg)](https://imagelayers.io/?images=phusion/baseimage:latest 'Get your own badge on imagelayers.io')
Baseimage-docker is a special [Docker](https://www.docker.com) image that is configured for correct use within Docker containers. It is Ubuntu, plus: Baseimage-docker is a special [Docker](https://www.docker.com) image that is configured for correct use within Docker containers. It is Ubuntu, plus:
@@ -530,45 +530,19 @@ If you want to call the resulting image something else, pass the NAME variable,
The default baseimage-docker installs `syslog-ng`, `cron` and `sshd` services during the build process. The default baseimage-docker installs `syslog-ng`, `cron` and `sshd` services during the build process.
In case you don't need one or more of these services in your image, you can disable its installation and/or install the substituite service of your preference. In case you don't need one or more of these services in your image, you can disable its installation.
You can user the `ENV` directive in your Dockerfile for these three variables : As shown in the following example, to prevent `sshd` from being installed into your image, set `1` to the `DISABLE_SSH` variable in the `./image/buildconfig` file.
* `DISABLE_SYSLOG`
* `DISABLE_SSH`
* `DISABLE_CRON`
For ex., if you want to disable ssh on your image :
#...
FROM phusion/baseimage:<VERSION>
# Set correct environment variables.
ENV HOME /root
# Disable SSH
ENV DISABLE_SSH 1
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
# ...put your own build instructions here...
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
If you don't want to use the `ENV` directive inside your Dockerfile and avoid creating another image layer, as shown in the following example, to prevent `sshd` from being installed into your image, set `1` to the `DISABLE_SSH` variable in the `./image/buildconfig` file.
### In ./image/buildconfig ### In ./image/buildconfig
# ... # ...
# Default services # Default services
# Set 1 to the service you want to disable # Set 1 to the service you want to disable
export DISABLE_SYSLOG=${DISABLE_SYSLOG:-0} export DISABLE_SYSLOG=0
export DISABLE_SSH=${DISABLE_SSH:-1} export DISABLE_SSH=1
export DISABLE_CRON=${DISABLE_CRON:-0} export DISABLE_CRON=0
Then you can proceed with `make build` command.
Then you can proceed with `docker build` command.
<a name="conclusion"></a> <a name="conclusion"></a>
## Conclusion ## Conclusion

View File

@@ -20,10 +20,10 @@ ln -s /etc/container_environment.sh /etc/profile.d/
$minimal_apt_get_install runit $minimal_apt_get_install runit
## Install a syslog daemon and logrotate. ## Install a syslog daemon and logrotate.
[ "$DISABLE_SYSLOG" -eq 0 ] && /bd_build/services/syslog-ng/syslog-ng.sh [ "$DISABLE_SYSLOG" -eq 0 ] && /bd_build/services/syslog-ng/syslog-ng.sh || true
## Install the SSH server. ## Install the SSH server.
[ "$DISABLE_SSH" -eq 0 ] && /bd_build/services/sshd/sshd.sh [ "$DISABLE_SSH" -eq 0 ] && /bd_build/services/sshd/sshd.sh || true
## Install cron daemon. ## Install cron daemon.
[ "$DISABLE_CRON" -eq 0 ] && /bd_build/services/cron/cron.sh [ "$DISABLE_CRON" -eq 0 ] && /bd_build/services/cron/cron.sh || true

View File

@@ -21,7 +21,7 @@ ID=`docker run -d -v $PWD/test:/test $NAME:$VERSION /sbin/my_init --enable-insec
sleep 1 sleep 1
echo " --> Obtaining IP" echo " --> Obtaining IP"
IP=`docker inspect $ID | grep IPAddress | sed -e 's/.*: "//; s/".*//'` IP=`docker inspect -f "{{ .NetworkSettings.IPAddress }}" "$ID"`
if [[ "$IP" = "" ]]; then if [[ "$IP" = "" ]]; then
abort "Unable to obtain container IP" abort "Unable to obtain container IP"
fi fi