Skip to content

Commit

Permalink
re-fix ssl-tool package install...
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandGouny committed Mar 20, 2017
1 parent 14bf6bf commit ce928d4
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 20 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.1.2
- re-fix ssl-tool package install...

## 0.1.1
- Alpine 3.5
- Fix ssl-tool package install
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NAME = osixia/alpine-light-baseimage
VERSION = 0.1.1
VERSION = 0.1.2

.PHONY: all build build-nocache test tag_latest release

Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

[hub]: https://hub.docker.com/r/osixia/alpine-light-baseimage/

Latest release: 0.1.1 - Beta - [Changelog](CHANGELOG.md)
Latest release: 0.1.2 - Beta - [Changelog](CHANGELOG.md)
| [Docker Hub](https://hub.docker.com/r/osixia/alpine-light-baseimage/) 

A linux Alpine 3.4 based docker image to build reliable image quickly. This image provide a simple opinionated solution to build multiple or single process image with minimum of layers and an optimized build.
Expand Down Expand Up @@ -142,7 +142,7 @@ In the Dockerfile we are going to:

# Use osixia/alpine-light-baseimage
# https://github.com/osixia/docker-light-baseimage
FROM osixia/alpine-light-baseimage:0.1.1
FROM osixia/alpine-light-baseimage:0.1.2
MAINTAINER Your Name <[email protected]>

# Download nginx from apk and clean apk files
Expand All @@ -155,7 +155,7 @@ In the Dockerfile we are going to:
ADD service /container/service

# Use baseimage install-service script
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/install-service
# https://github.com/osixia/docker-light-baseimage/blob/alpine/image/tool/install-service
RUN /container/tool/install-service

# Add default env directory
Expand Down Expand Up @@ -388,11 +388,11 @@ In the Dockerfile we are going to:

# Use osixia/alpine-light-baseimage
# https://github.com/osixia/docker-light-baseimage
FROM osixia/alpine-light-baseimage:0.1.1
FROM osixia/alpine-light-baseimage:0.1.2
MAINTAINER Your Name <[email protected]>

# Install multiple process stack, nginx and php5-fpm and clean apk files
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/add-multiple-process-stack
# https://github.com/osixia/docker-light-baseimage/blob/alpine/image/tool/add-multiple-process-stack
RUN apk update \
&& /container/tool/add-multiple-process-stack \
&& apk add \
Expand All @@ -404,7 +404,7 @@ In the Dockerfile we are going to:
ADD service /container/service

# Use baseimage install-service script
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/install-service
# https://github.com/osixia/docker-light-baseimage/blob/alpine/image/tool/install-service
RUN /container/tool/install-service

# Add default env directory
Expand Down Expand Up @@ -605,13 +605,13 @@ Here simple Dockerfile example how to add a service-available to an image:

# Use osixia/alpine-light-baseimage
# https://github.com/osixia/docker-light-baseimage
FROM osixia/light-baseimage:0.1.1
FROM osixia/light-baseimage:0.1.2
MAINTAINER Your Name <[email protected]>

# Add cfssl and cron service-available
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/add-service-available
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/service-available/:ssl-tools/download.sh
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/service-available/:cron/download.sh
# https://github.com/osixia/docker-light-baseimage/blob/alpine/image/tool/add-service-available
# https://github.com/osixia/docker-light-baseimage/blob/alpine/image/service-available/:ssl-tools/download.sh
# https://github.com/osixia/docker-light-baseimage/blob/alpine/image/service-available/:cron/download.sh
RUN apt-get -y update \
&& /container/tool/add-service-available :ssl-tools :cron \
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
Expand Down Expand Up @@ -668,7 +668,7 @@ What it does:

*Run tool* takes several options, to list them:

docker run osixia/alpine-light-baseimage:0.1.1 --help
docker run osixia/alpine-light-baseimage:0.1.2 --help
usage: run [-h] [-e] [-s] [-p] [-f] [-o {startup,process,finish}]
[-c COMMAND [WHEN={startup,process,finish} ...]] [-k]
[--wait-state FILENAME] [--wait-first-startup] [--keep-startup-env]
Expand Down Expand Up @@ -779,7 +779,7 @@ If a main command is set for example:
If a main command is set *run tool* launch it otherwise bash is launched.
Example:

docker run -it osixia/alpine-light-baseimage:0.1.1
docker run -it osixia/alpine-light-baseimage:0.1.2


##### Extra environment variables
Expand Down Expand Up @@ -855,8 +855,8 @@ Note this yaml definition:

Can also be set by command line converted in python or json:

docker run -it --env FRUITS="#PYTHON2BASH:['orange','apple']" osixia/alpine-light-baseimage:0.1.1 printenv
docker run -it --env FRUITS="#JSON2BASH:[\"orange\",\"apple\"]" osixia/alpine-light-baseimage:0.1.1 printenv
docker run -it --env FRUITS="#PYTHON2BASH:['orange','apple']" osixia/alpine-light-baseimage:0.1.2 printenv
docker run -it --env FRUITS="#JSON2BASH:[\"orange\",\"apple\"]" osixia/alpine-light-baseimage:0.1.2 printenv

### Tests

Expand Down
2 changes: 1 addition & 1 deletion example/multiple-process-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Use osixia/alpine-light-baseimage
# https://github.com/osixia/docker-light-baseimage
FROM osixia/alpine-light-baseimage:0.1.1
FROM osixia/alpine-light-baseimage:0.1.2
MAINTAINER Your Name <[email protected]>

# Install multiple process stack, nginx and php5-fpm and clean apk files
Expand Down
26 changes: 26 additions & 0 deletions example/multiple-process-image/service/php5-fpm/config/default
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
server {
listen 80 default_server;
listen [::]:80 default_server;

root /var/www/html;

# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;

server_name _;

location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# With php5-fpm:
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
include fastcgi.conf;
}
}
4 changes: 2 additions & 2 deletions example/single-process-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Use osixia/alpine-light-baseimage
# https://github.com/osixia/docker-light-baseimage
FROM osixia/alpine-light-baseimage:0.1.1
FROM osixia/alpine-light-baseimage:0.1.2
MAINTAINER Your Name <[email protected]>

# Download nginx from apk and clean apk files
Expand All @@ -13,7 +13,7 @@ RUN apk update \
ADD service /container/service

# Use baseimage install-service script
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/install-service
# https://github.com/osixia/docker-light-baseimage/blob/alpine/image/tool/install-service
RUN /container/tool/install-service

# Add default env directory
Expand Down
Binary file added image/file/PyYAML-3.11.tar.gz
Binary file not shown.
9 changes: 9 additions & 0 deletions image/file/dpkg_nodoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
path-exclude /usr/share/doc/*
# we need to keep copyright files for legal reasons
path-include /usr/share/doc/*/copyright
path-exclude /usr/share/man/*
path-exclude /usr/share/groff/*
path-exclude /usr/share/info/*
# lintian stuff is small, but really unnecessary
path-exclude /usr/share/lintian/*
path-exclude /usr/share/linda/*
2 changes: 2 additions & 0 deletions image/file/dpkg_nolocales
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
path-exclude /usr/share/locale/*
path-include /usr/share/locale/en*
4 changes: 2 additions & 2 deletions image/service-available/:ssl-tools/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# download curl and ca-certificate from apt-get if needed
to_install=""

apk info curl || to_install="curl"
apk info ca-certificates || to_install="$to_install ca-certificates"
apk info | grep -q curl || to_install="curl"
apk info | grep -q ca-certificates || to_install="$to_install ca-certificates"

if [ -n "$to_install" ]; then
apk add $to_install
Expand Down

0 comments on commit ce928d4

Please sign in to comment.