diff --git a/bitnami/parse/3/rhel-7/Dockerfile b/bitnami/parse/3/rhel-7/Dockerfile new file mode 100644 index 000000000000..1b9bb5bde9a7 --- /dev/null +++ b/bitnami/parse/3/rhel-7/Dockerfile @@ -0,0 +1,33 @@ +FROM registry.rhc4tp.openshift.com/bitnami/rhel-extras-7:latest +LABEL maintainer "Bitnami " + +ENV BITNAMI_PKG_CHMOD="-R g+rwX" \ + HOME="/" + +# Install required system packages and dependencies +RUN install_packages bzip2-libs glibc keyutils-libs krb5-libs libcom_err libgcc libselinux libstdc++ ncurses-libs nss-softokn-freebl openssl-libs pcre readline zlib +RUN bitnami-pkg install node-8.15.0-0 --checksum e58329d20dc57c4f7d5a3cc42a7e3fe532c287186204fb16e9b6b69e1369ee13 +RUN bitnami-pkg install mongodb-client-4.0.6-0 --checksum d093e37675ba2d695ef2e0d5369bb64c027e4e71cb4e1d6d093142b91838a4df +RUN bitnami-pkg unpack parse-3.1.3-0 --checksum 7379981551f59de2c46e1c08795ea3e3644c9a1302b48b9b644ddeb9861760b2 + +COPY rootfs / +ENV BITNAMI_APP_NAME="parse" \ + BITNAMI_IMAGE_VERSION="3.1.3-rhel-7-r0" \ + MONGODB_HOST="mongodb" \ + MONGODB_PASSWORD="" \ + MONGODB_PORT_NUMBER="27017" \ + MONGODB_USER="root" \ + NAMI_PREFIX="/.nami" \ + PARSE_APP_ID="myappID" \ + PARSE_ENABLE_CLOUD_CODE="no" \ + PARSE_HOST="127.0.0.1" \ + PARSE_MASTER_KEY="mymasterKey" \ + PARSE_MOUNT_PATH="/parse" \ + PARSE_PORT_NUMBER="1337" \ + PATH="/opt/bitnami/node/bin:/opt/bitnami/mongodb/bin:/opt/bitnami/parse/bin:$PATH" + +EXPOSE 1337 + +USER 1001 +ENTRYPOINT [ "/app-entrypoint.sh" ] +CMD [ "/run.sh" ] diff --git a/bitnami/parse/3/rhel-7/docker-compose.yml b/bitnami/parse/3/rhel-7/docker-compose.yml new file mode 100644 index 000000000000..873a9b52cf8e --- /dev/null +++ b/bitnami/parse/3/rhel-7/docker-compose.yml @@ -0,0 +1,19 @@ +version: '2' +services: + mongodb: + image: bitnami/mongodb:latest + volumes: + - mongodb_data:/bitnami + parse: + image: bitnami/parse:3-rhel-7 + ports: + - '1337:1337' + volumes: + - parse_data:/bitnami + depends_on: + - mongodb +volumes: + mongodb_data: + driver: local + parse_data: + driver: local diff --git a/bitnami/parse/3/rhel-7/rootfs/app-entrypoint.sh b/bitnami/parse/3/rhel-7/rootfs/app-entrypoint.sh new file mode 100755 index 000000000000..1c16ec7d570b --- /dev/null +++ b/bitnami/parse/3/rhel-7/rootfs/app-entrypoint.sh @@ -0,0 +1,13 @@ +#!/bin/bash -e + +. /opt/bitnami/base/functions +. /opt/bitnami/base/helpers + +print_welcome_page + +if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/run.sh" ]]; then + nami_initialize parse + info "Starting parse... " +fi + +exec tini -- "$@" diff --git a/bitnami/parse/3/rhel-7/rootfs/parse-inputs.json b/bitnami/parse/3/rhel-7/rootfs/parse-inputs.json new file mode 100644 index 000000000000..28ae0c437ef4 --- /dev/null +++ b/bitnami/parse/3/rhel-7/rootfs/parse-inputs.json @@ -0,0 +1,12 @@ +{ + "appId": "{{$global.env.PARSE_APP_ID}}", + "applicationPort": "{{$global.env.PARSE_PORT_NUMBER}}", + "databaseAdminPassword": "{{$global.env.MONGODB_PASSWORD}}", + "databaseAdminUser": "{{$global.env.MONGODB_USER}}", + "databaseServerHost": "{{$global.env.MONGODB_HOST}}", + "databaseServerPort": "{{$global.env.MONGODB_PORT_NUMBER}}", + "enableCloudCode": "{{$global.env.PARSE_ENABLE_CLOUD_CODE}}", + "host": "{{$global.env.PARSE_HOST}}", + "masterKey": "{{$global.env.PARSE_MASTER_KEY}}", + "mountPath": "{{$global.env.PARSE_MOUNT_PATH}}" +} \ No newline at end of file diff --git a/bitnami/parse/3/rhel-7/rootfs/run.sh b/bitnami/parse/3/rhel-7/rootfs/run.sh new file mode 100755 index 000000000000..ff6ffacfde67 --- /dev/null +++ b/bitnami/parse/3/rhel-7/rootfs/run.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +. /opt/bitnami/base/functions +. /opt/bitnami/base/helpers + +USER=parse +DAEMON=parse-server +EXEC=$(which $DAEMON) +START_COMMAND="${EXEC} /opt/bitnami/parse/config.json" + +cd /opt/bitnami/parse || exit 1 + +# If container is started as `root` user +if [ $EUID -eq 0 ]; then + exec gosu "${USER}" bash -c "${START_COMMAND}" +else + exec bash -c "${START_COMMAND}" +fi diff --git a/bitnami/parse/README.md b/bitnami/parse/README.md index 0d4565a268ff..b90eeae2a46d 100644 --- a/bitnami/parse/README.md +++ b/bitnami/parse/README.md @@ -48,7 +48,7 @@ Learn more about the Bitnami tagging policy and the difference between rolling t * [`3-rhel-7`, `3.1.3-rhel-7-r0` (3/rhel-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-parse/blob/3.1.3-rhel-7-r0/3/rhel-7/Dockerfile) -* [`3-ol-7`, `3.1.3-ol-7-r48` (3/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-parse/blob/3.1.3-ol-7-r48/3/ol-7/Dockerfile) +* [`3-ol-7`, `3.1.3-ol-7-r47` (3/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-parse/blob/3.1.3-ol-7-r47/3/ol-7/Dockerfile) * [`3-debian-9`, `3.1.3-debian-9-r39`, `3`, `3.1.3`, `3.1.3-r39`, `latest` (3/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-parse/blob/3.1.3-debian-9-r39/3/debian-9/Dockerfile) Subscribe to project updates by watching the [bitnami/parse GitHub repo](https://github.com/bitnami/bitnami-docker-parse).