summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2015-11-28 05:57:08 +0100
committerstartxfr <clarue@startx.fr>2015-11-28 05:57:08 +0100
commitd2b8afc1f219e3db7c776a17c0f03128476ddefa (patch)
treec227b2093ed65b18c81a2706c6d386a5e7d37f7a
parentce30e623a04eb19828be26585dba984c68fbf0ec (diff)
downloadphpmyadmin-d2b8afc1f219e3db7c776a17c0f03128476ddefa.tar.gz
phpmyadmin-d2b8afc1f219e3db7c776a17c0f03128476ddefa.tar.bz2
phpmyadmin-d2b8afc1f219e3db7c776a17c0f03128476ddefa.tar.xz
phpmyadmin-d2b8afc1f219e3db7c776a17c0f03128476ddefa.zip
switching to fedora 23 in master. Start adding docker-compose support
-rwxr-xr-xApplications/dockerhub_run.sh3
-rw-r--r--Applications/phpmyadmin/Dockerfile4
-rw-r--r--OS/Centos/Dockerfile9
-rw-r--r--OS/Centos/README.md39
-rw-r--r--OS/Dockerfile (renamed from OS/Fedora/Dockerfile)0
-rw-r--r--OS/README.md (renamed from OS/Fedora/README.md)28
-rw-r--r--OS/docker-compose.yml8
-rwxr-xr-xOS/dockerhub_run.sh3
-rwxr-xr-xOS/local_build.sh3
-rwxr-xr-xOS/local_run.sh3
-rw-r--r--Services/apache/Dockerfile4
-rwxr-xr-xServices/dockerhub_run.sh10
-rw-r--r--Services/mariadb/Dockerfile7
-rw-r--r--Services/memcache/Dockerfile2
-rw-r--r--Services/mongo/Dockerfile4
-rw-r--r--Services/nodejs/Dockerfile4
-rw-r--r--Services/ooconv/Dockerfile4
-rw-r--r--Services/php/Dockerfile4
-rw-r--r--Services/postgres/Dockerfile4
-rw-r--r--Services/ssh/Dockerfile6
-rwxr-xr-xdockerhub_run.sh4
-rwxr-xr-xlocal_build.sh2
-rwxr-xr-xlocal_run.sh2
23 files changed, 51 insertions, 106 deletions
diff --git a/Applications/dockerhub_run.sh b/Applications/dockerhub_run.sh
deleted file mode 100755
index 2c25afb..0000000
--- a/Applications/dockerhub_run.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-docker run -d -p 84:80 --name="pma" startx/app-pma
-docker run -d -p 86:80 --name="rockmongo" startx/app-rockmongo \ No newline at end of file
diff --git a/Applications/phpmyadmin/Dockerfile b/Applications/phpmyadmin/Dockerfile
index d63c460..416b66b 100644
--- a/Applications/phpmyadmin/Dockerfile
+++ b/Applications/phpmyadmin/Dockerfile
@@ -1,8 +1,8 @@
FROM startx/sv-php
MAINTAINER Christophe LARUE <dev@startx.fr>
-RUN yum -y install phpMyAdmin \
- && yum clean all
+RUN dnf -y install phpMyAdmin \
+ && dnf clean all
COPY config.php /etc/phpMyAdmin/config.inc.php
COPY test.php /var/www/html/test.php
diff --git a/OS/Centos/Dockerfile b/OS/Centos/Dockerfile
deleted file mode 100644
index e599305..0000000
--- a/OS/Centos/Dockerfile
+++ /dev/null
@@ -1,9 +0,0 @@
-FROM centos:latest
-MAINTAINER Christophe LARUE <dev@startx.fr>
-
-USER root
-# Install minimal packages
-RUN yum -y install deltarpm pwgen tar psmisc \
- && yum -y update \
- && yum clean all \
- && mkdir -p /sx
diff --git a/OS/Centos/README.md b/OS/Centos/README.md
deleted file mode 100644
index 8b97a9c..0000000
--- a/OS/Centos/README.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# STARTX OS docker-images : Fedora
-==================================
-
-Centos image builded with minimal and updated binaries
-
-
-## Running from docker registry
-
- docker run -it --name="centos" startx/centos
-
-## Build and run from local Dockerfile
-### Building docker image
-Copy sources in your docker host
-
- mkdir startx-docker-images;
- cd startx-docker-images;
- git clone https://github.com/startxfr/docker-images.git .
-
-Build the container
-
- docker build -t centos OS/Centos/
-
-### Running local image
-
- docker run -it --name="centos" centos bash
-
-## Accessing server
-
- # Start interactive shell
- docker run -it startx/centos bash
- # Start as a daemon
- docker run -d startx/centos bash
- docker exec -it centos /bin/bash
-
-## Related Resources
-* [Sources files](https://github.com/startxfr/docker-images/tree/master/Services/centos)
-* [Github STARTX profile](https://github.com/startxfr/docker-images)
-* [Docker registry for this container](https://registry.hub.docker.com/u/startx/centos/)
-* [Docker registry for Centos](https://registry.hub.docker.com/u/centos/) \ No newline at end of file
diff --git a/OS/Fedora/Dockerfile b/OS/Dockerfile
index ce00afb..ce00afb 100644
--- a/OS/Fedora/Dockerfile
+++ b/OS/Dockerfile
diff --git a/OS/Fedora/README.md b/OS/README.md
index 3d26fc7..150ba21 100644
--- a/OS/Fedora/README.md
+++ b/OS/README.md
@@ -1,26 +1,40 @@
# STARTX OS docker-images : Fedora
-Fedora image builded with minimal and updated binaries
+Fedora image builded with minimal and updated rpm and core-utils loaded
## Running from docker registry
docker run -it --name="fedora" startx/fedora
## Build and run from local Dockerfile
-### Building docker image
-Copy sources in your docker host
+1. Building docker image
+ # Step 1 : Copy sources in your docker host
mkdir startx-docker-images;
cd startx-docker-images;
git clone https://github.com/startxfr/docker-images.git .
+ # Step 2 : Build the container
+ docker build -t fedora OS/
-Build the container
+2. Running local image
- docker build -t fedora OS/Fedora/
+ docker run -it --name="fedora" fedora bash
-### Running local image
- docker run -it --name="fedora" fedora bash
+## Building and running using docker-compose
+1. Building from source
+
+ # Step 1 : Copy sources in your docker host
+ mkdir startx-docker-images;
+ git clone https://github.com/startxfr/docker-images.git startx-docker-images;
+ cd startx-docker-images/OS;
+ # Step 2 : Build the container
+ docker-compose build;
+
+2. Running this service
+
+ docker-compose up -d;
+ docker-compose logs;
## Accessing server
diff --git a/OS/docker-compose.yml b/OS/docker-compose.yml
new file mode 100644
index 0000000..65ce1f3
--- /dev/null
+++ b/OS/docker-compose.yml
@@ -0,0 +1,8 @@
+server:
+ build: ./
+# image: sx-fedora
+ container_name: "sx-fedora"
+ mem_limit: 1g
+ memswap_limit: 2g
+ cpu_shares: 4096
+ restart: "on-failure:2" \ No newline at end of file
diff --git a/OS/dockerhub_run.sh b/OS/dockerhub_run.sh
deleted file mode 100755
index 2209c2f..0000000
--- a/OS/dockerhub_run.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-docker run -d --name="fedora" startx/fedora /bin/bash
-docker run -d --name="centos" startx/centos /bin/bash \ No newline at end of file
diff --git a/OS/local_build.sh b/OS/local_build.sh
deleted file mode 100755
index 9491a4d..0000000
--- a/OS/local_build.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-docker build -t fedora OS/Fedora/
-docker build -t centos OS/Centos/ \ No newline at end of file
diff --git a/OS/local_run.sh b/OS/local_run.sh
deleted file mode 100755
index 4d3e435..0000000
--- a/OS/local_run.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-docker run -d --name="lbfedora" fedora /bin/bash
-docker run -d --name="lbcentos" centos /bin/bash \ No newline at end of file
diff --git a/Services/apache/Dockerfile b/Services/apache/Dockerfile
index 10a6e1f..d382ea7 100644
--- a/Services/apache/Dockerfile
+++ b/Services/apache/Dockerfile
@@ -3,8 +3,8 @@ MAINTAINER Christophe LARUE <dev@startx.fr>
USER root
# Install packages and set up httpd
-RUN yum -y install httpd \
- && yum clean all \
+RUN dnf -y install httpd \
+ && dnf clean all \
&& mkdir -p /var/www/html \
&& mkdir -p /var/log/httpd
# Copy startx toolkit
diff --git a/Services/dockerhub_run.sh b/Services/dockerhub_run.sh
deleted file mode 100755
index 3b3d06d..0000000
--- a/Services/dockerhub_run.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-docker run -d -p 80:80 --name="apache" startx/sv-apache
-docker run -d -p 3306:3306 --name="mariadb" startx/sv-mariadb
-docker run -d -p 11211:11211 --name="memcache" startx/sv-memcache
-docker run -d -p 27017:27017 --name="mongo" startx/sv-mongo
-docker run -d -p 8000:8000 --name="nodejs" startx/sv-nodejs
-docker run -d -p 82:80 --name="php" startx/sv-php
-docker run -d -p 5432:5432 --name="postgres" startx/sv-postgres
-docker run -d -p 2002:2002 --name="ooconv" startx/sv-ooconv
-docker run -d -p 22022:22 --name="ssh" startx/sv-ssh \ No newline at end of file
diff --git a/Services/mariadb/Dockerfile b/Services/mariadb/Dockerfile
index 3dc35fe..5efa265 100644
--- a/Services/mariadb/Dockerfile
+++ b/Services/mariadb/Dockerfile
@@ -1,11 +1,8 @@
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>
-RUN yum -y install \
- mariadb-libs \
- mariadb-server \
- mariadb \
- && yum clean all \
+RUN dnf -y install mariadb-common mariadb-libs mariadb-config mariadb-errmsg mariadb-server mariadb \
+ && dnf clean all \
&& mkdir -p /var/log/mysql \
&& touch /var/log/mysql/.keep /var/lib/mysql/.keep \
&& chown -R mysql:mysql /var/log/mysql /var/lib/mysql \
diff --git a/Services/memcache/Dockerfile b/Services/memcache/Dockerfile
index b71fb6f..6bc68fe 100644
--- a/Services/memcache/Dockerfile
+++ b/Services/memcache/Dockerfile
@@ -1,7 +1,7 @@
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>
-RUN yum -y install memcached memcached-selinux && yum clean all
+RUN dnf -y install memcached memcached-selinux && yum clean all
COPY sx/* /sx/
RUN chmod ug+rx /sx/memcache*
diff --git a/Services/mongo/Dockerfile b/Services/mongo/Dockerfile
index 0199e76..85261c8 100644
--- a/Services/mongo/Dockerfile
+++ b/Services/mongo/Dockerfile
@@ -1,14 +1,14 @@
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>
-RUN yum -y install \
+RUN dnf -y install \
mongodb \
mongodb-server \
libmongo-client \
rsyslog-mongodb \
mongodb-mms-backup-agent \
mongodb-mms-monitoring-agent \
- && yum clean all \
+ && dnf clean all \
&& mkdir -p /var/lib/mongodb \
&& touch /var/lib/mongodb/.keep
COPY sx/* /sx/
diff --git a/Services/nodejs/Dockerfile b/Services/nodejs/Dockerfile
index c25c32d..dc20d72 100644
--- a/Services/nodejs/Dockerfile
+++ b/Services/nodejs/Dockerfile
@@ -1,8 +1,8 @@
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>
-RUN yum -y install nodejs npm python make gcc \
- && yum clean all \
+RUN dnf -y install nodejs npm python make gcc \
+ && dnf clean all \
&& mkdir -p /app \
&& chmod ug+rx /app
VOLUME ["/app"]
diff --git a/Services/ooconv/Dockerfile b/Services/ooconv/Dockerfile
index 699f6de..f8ce949 100644
--- a/Services/ooconv/Dockerfile
+++ b/Services/ooconv/Dockerfile
@@ -3,8 +3,8 @@ MAINTAINER Christophe LARUE <dev@startx.fr>
USER root
# Install packages and set up unoconv
-RUN yum -y install unoconv libreoffice-headless libreoffice-writer libreoffice-calc pdftk gs \
- && yum clean all \
+RUN dnf -y install unoconv libreoffice-headless libreoffice-writer libreoffice-calc pdftk gs \
+ && dnf clean all \
&& mkdir -p /tmp/ootmp
# Copy startx toolkit
COPY sx/* /sx/
diff --git a/Services/php/Dockerfile b/Services/php/Dockerfile
index 2c86f15..60985df 100644
--- a/Services/php/Dockerfile
+++ b/Services/php/Dockerfile
@@ -2,12 +2,12 @@ FROM startx/sv-apache
MAINTAINER Christophe LARUE <dev@startx.fr>
USER root
-RUN yum -y install php php-pecl-mongo php-cli php-pear \
+RUN dnf -y install php php-pecl-mongo php-cli php-pear \
php-gd php-mcrypt php-mysqlnd php-soap php-pecl-xdebug \
php-pdo php-process php-common php-mbstring \
php-bcmath php-pecl-zip php-php-gettext php-tcpdf \
php-tcpdf-dejavu-sans-fonts php-tidy \
- && yum clean all
+ && dnf clean all
# Copy application content
COPY app/* /var/www/html/
COPY httpd.conf /etc/httpd/conf.d/sx.conf
diff --git a/Services/postgres/Dockerfile b/Services/postgres/Dockerfile
index 0f2a617..2af22b1 100644
--- a/Services/postgres/Dockerfile
+++ b/Services/postgres/Dockerfile
@@ -1,8 +1,8 @@
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>
-RUN yum -y install postgresql postgresql-libs postgresql-server \
- && yum clean all \
+RUN dnf -y install postgresql postgresql-libs postgresql-server \
+ && dnf clean all \
&& mkdir -p /var/log/pgsql /var/lib/pgsql \
&& touch /var/log/pgsql/.keep /var/lib/pgsql/.keep \
&& chown -R postgres:postgres /var/log/pgsql /var/lib/pgsql
diff --git a/Services/ssh/Dockerfile b/Services/ssh/Dockerfile
index 2ad849c..7a582b1 100644
--- a/Services/ssh/Dockerfile
+++ b/Services/ssh/Dockerfile
@@ -2,9 +2,9 @@ FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>
# Install packages and set up sshd
-RUN yum -y update \
- && yum -y install openssh-server \
- && yum clean all
+RUN dnf -y update \
+ && dnf -y install openssh-server \
+ && dnf clean all
# Copy startx toolkit
COPY sx/* /sx/
# Copy ssh keys
diff --git a/dockerhub_run.sh b/dockerhub_run.sh
deleted file mode 100755
index 66f4b9d..0000000
--- a/dockerhub_run.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-OS/dockerhub_run.sh
-Services/dockerhub_run.sh
-Applications/dockerhub_run.sh \ No newline at end of file
diff --git a/local_build.sh b/local_build.sh
index 1be05e3..67dfb0e 100755
--- a/local_build.sh
+++ b/local_build.sh
@@ -1,4 +1,4 @@
#!/bin/bash
-OS/local_build.sh
+cd OS; docker-compose build; cd -;
Services/local_build.sh
Applications/local_build.sh \ No newline at end of file
diff --git a/local_run.sh b/local_run.sh
index 2da2d96..010a4d9 100755
--- a/local_run.sh
+++ b/local_run.sh
@@ -1,4 +1,4 @@
#!/bin/bash
-OS/local_run.sh
+cd OS; docker-compose up -d; cd -;
Services/local_run.sh
Applications/local_run.sh \ No newline at end of file