Alpine based images for Docker - Fundamental ones
kost / docker-alpine Goto Github PK
View Code? Open in Web Editor NEWAlpine based images for Docker - Fundamental ones
License: MIT License
Alpine based images for Docker - Fundamental ones
License: MIT License
In scripts/run.sh
for the alpine-rt
image, this will never work...
echo "Set(\$DatabasePassword, '$DB_ENV_POSTGRESS_PASSWORD');" >
...because of the extra S
in POSTGRESS
.
I'm not sure why this happens for me.
Running these:
docker run --rm -p 80:80 -v $(pwd):/usr/local/apache2/htdocs/ httpd:alpine
docker run --rm -p 80:80 -v $(pwd):/var/www/html php:5-apache
I have no problem doing control C to quit from the terminal. But when I run yours, it does not quit:
docker run --rm -p 80:80 -v $(pwd):/app k0st/alpine-apache-php
The run.sh
script attempts to tail the lighttpd logs:
# display logs
tail -F /var/log/lighttpd/*log &
But tat the time this script runs, these log files don't exist, so the wildcard expansion fails, so you get:
tail: can't open '/var/log/lighttpd/*log': No such file or directory
If you replace this with:
tail -F /var/log/lighttpd/access.log /var/log/lighttpd/error.log
It should work as intended.
"Repository Links" is available on Docker Hub "Build Settings", so your images will be always built on the latest available base image.
I tried building the alpine-logstash
image and I got the 403 Forbidden error
โ open-source/docker-alpine$ docker-compose up
Creating network "monitordocker_default" with the default driver
Building logstash
Step 1 : FROM jolokia/alpine-jre-8
---> cec011f0dc82
Step 2 : MAINTAINER kost, https://github.com/kost/docker-alpine
---> Using cache
---> 5b71ef2e850b
Step 3 : ENV LOGSTASH_NAME logstash
---> Using cache
---> ab717b969764
Step 4 : ENV LOGSTASH_VERSION 1.5.3
---> Using cache
---> 7265715e8c4f
Step 5 : ENV LOGSTASH_URL https://download.elastic.co/$LOGSTASH_NAME/$LOGSTASH_NAME/$LOGSTASH_NAME-$LOGSTASH_VERSION.tar.gz
---> Using cache
---> 8bfc0f542ea8
Step 6 : ENV LOGSTASH_CONFIG /opt/$LOGSTASH_NAME-$LOGSTASH_VERSION/etc/logstash.json
---> Using cache
---> 965ea42ed621
Step 7 : RUN apk update && apk add bash openssl && mkdir -p /opt && wget -O /tmp/$LOGSTASH_NAME-$LOGSTASH_VERSION.tar.gz $LOGSTASH_URL && tar xzf /tmp/$LOGSTASH_NAME-$LOGSTASH_VERSION.tar.gz -C /opt/ && ln -s /opt/$LOGSTASH_NAME-$LOGSTASH_VERSION /opt/$L
OGSTASH_NAME && rm -rf /tmp/*.tar.gz /var/cache/apk/* && mkdir -p /scripts/pre-exec.d && mkdir /scripts/pre-init.d && chmod -R 755 /scripts
---> Running in 82bebf3a96e6
fetch http://dl-4.alpinelinux.org/alpine/v3.2/main/x86_64/APKINDEX.tar.gz
v3.2.3-319-g03c6d6e [http://dl-4.alpinelinux.org/alpine/v3.2/main]
OK: 5305 distinct packages available
(1/5) Installing ncurses-terminfo-base (5.9-r3)
(2/5) Installing ncurses-libs (5.9-r3)
(3/5) Installing readline (6.3.008-r0)
(4/5) Installing bash (4.3.33-r0)
(5/5) Installing openssl (1.0.2h-r1)
Executing busybox-1.23.2-r0.trigger
OK: 14 MiB in 23 packages
Connecting to download.elastic.co (184.73.218.216:443)
wget: error getting response: Connection reset by peer
ERROR: Service 'logstash' failed to build: The command '/bin/sh -c apk update && apk add bash openssl && mkdir -p /opt && wget -O /tmp/$LOGSTASH_NAME-$LOGSTASH_VERSION.tar.gz $LOGSTASH_URL && tar xzf /tmp/$LOGSTASH_NAME-$LOGSTASH_VERSION.tar.gz -C /opt/
&& ln -s /opt/$LOGSTASH_NAME-$LOGSTASH_VERSION /opt/$LOGSTASH_NAME && rm -rf /tmp/*.tar.gz /var/cache/apk/* && mkdir -p /scripts/pre-exec.d && mkdir /scripts/pre-init.d && chmod -R 755 /scripts' returned a non-zero code: 1
This builds mysql not maria db :)
apk --update add mysql mysql-client
It looks as if the alpine-rt image has configuration issues. When started as:
docker run -it k0st/alpine-rt
And then connecting to:
http://<container_ip>/
There are 404 errors on the login page for:
The first file indeed does not exist, and while there is a file /opt/rt4/share/static/images/bpslogo.png
it looks as if either RT or Lighttpd are not configured appropriately for it to be found at the above URL.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.