Skip to content

Commit

Permalink
Update base OS and mongodb version
Browse files Browse the repository at this point in the history
  • Loading branch information
OndroNR committed Feb 26, 2020
1 parent 740dece commit b1506ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM ubuntu:14.04
FROM ubuntu:bionic

ENV MONGODB_VERSION=3.4.19
ENV MONGODB_VERSION=4.2.3

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv BC711F9BA15703C6 \
&& echo 'deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse' > /etc/apt/sources.list.d/mongodb.list \
RUN apt-get update \
&& apt-get install -y curl gnupg \
&& curl https://www.mongodb.org/static/pgp/server-4.2.asc -o - | apt-key add - \
&& echo 'deb http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse' > /etc/apt/sources.list.d/mongodb.list \
&& apt-get update \
&& apt-get install -y mongodb-org-tools=$MONGODB_VERSION s3cmd ca-certificates

Expand Down
8 changes: 5 additions & 3 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/${REPO_NAME}:${_ENV_IMAGE_TAG}-${COMMIT_SHA}-${BUILD_ID}', '-t', 'gcr.io/$PROJECT_ID/${REPO_NAME}:${_ENV_IMAGE_TAG}', '.']
args: ['build', '-t', 'eu.gcr.io/$PROJECT_ID/${REPO_NAME}:${_ENV_IMAGE_TAG}-${COMMIT_SHA}-${BUILD_ID}', '-t', 'eu.gcr.io/$PROJECT_ID/${REPO_NAME}:${_ENV_IMAGE_TAG}', '.']
images:
- 'gcr.io/$PROJECT_ID/${REPO_NAME}:${_ENV_IMAGE_TAG}-${COMMIT_SHA}-${BUILD_ID}'
- 'gcr.io/$PROJECT_ID/${REPO_NAME}:${_ENV_IMAGE_TAG}'
- 'eu.gcr.io/$PROJECT_ID/${REPO_NAME}:${_ENV_IMAGE_TAG}-${COMMIT_SHA}-${BUILD_ID}'
- 'eu.gcr.io/$PROJECT_ID/${REPO_NAME}:${_ENV_IMAGE_TAG}'
substitutions:
_ENV_IMAGE_TAG: test

0 comments on commit b1506ba

Please sign in to comment.