add mbstring redis and pgsql to php7.2 build

This commit is contained in:
2020-04-29 08:52:55 -04:00
parent 33e945f662
commit 39dfc3bb87
4 changed files with 27 additions and 9 deletions

View File

@@ -19,3 +19,16 @@ RUN mkdir -p /opt/project
WORKDIR /opt/project
ENTRYPOINT ["php", "/opt/.composer/vendor/bin/robo"]
RUN apt-get update && apt-get install -y apt-transport-https software-properties-common ca-certificates curl gnupg-agent\
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
&& add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable" \
&& apt-get update && apt-get install -y \
docker-ce-cli \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose \
&& chmod +x /usr/bin/docker-compose

View File

@@ -7,6 +7,8 @@ set -ex
docker build --rm -f Dockerfile -t xaicorp/php-robo .
docker run --rm xaicorp/php-robo --version | grep 'Robo 2.0.'
docker run --rm --entrypoint docker xaicorp/php-robo -v | grep "Docker version"
docker run --rm --entrypoint which xaicorp/php-robo docker-compose | grep "docker-compose"
docker run --rm --entrypoint php xaicorp/php-robo -m | grep 'curl'
docker tag xaicorp/php-robo dkregistry.xai-corp.net:5000/xaicorp/php-robo
docker push dkregistry.xai-corp.net:5000/xaicorp/php-robo