[bitnami/parse-dashboard] Release 5.3.0-debian-11-r4 (#55110)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot
2024-01-20 03:16:24 +01:00
committed by GitHub
parent 0f96d1146b
commit afa155f474
4 changed files with 47 additions and 114 deletions
@@ -7,10 +7,10 @@ ARG TARGETARCH
LABEL com.vmware.cp.artifact.flavor="sha256:1e1b4657a77f0d47e9220f0c37b9bf7802581b93214fff7d1bd2364c8bf22e8e" \
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \
org.opencontainers.image.created="2023-12-24T08:19:37Z" \
org.opencontainers.image.created="2024-01-20T01:19:05Z" \
org.opencontainers.image.description="Application packaged by VMware, Inc" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.ref.name="5.3.0-debian-11-r3" \
org.opencontainers.image.ref.name="5.3.0-debian-11-r4" \
org.opencontainers.image.title="parse-dashboard" \
org.opencontainers.image.vendor="VMware, Inc." \
org.opencontainers.image.version="5.3.0"
@@ -42,6 +42,7 @@ RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ ; \
RUN apt-get update && apt-get upgrade -y && \
apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
RUN chmod g+rwX /opt/bitnami
RUN find / -perm /6000 -type f -exec chmod a-s {} \; || true
RUN mkdir /.local && chmod g+rwX /.local
COPY rootfs /
@@ -1,43 +0,0 @@
# Copyright VMware, Inc.
# SPDX-License-Identifier: APACHE-2.0
version: '2'
services:
mongodb:
image: docker.io/bitnami/mongodb:7.0
volumes:
- 'mongodb_data:/bitnami/mongodb'
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MONGODB_USERNAME=bn_parse
- MONGODB_DATABASE=bitnami_parse
- MONGODB_PASSWORD=bitnami123
parse:
image: docker.io/bitnami/parse:5
ports:
- '1337:1337'
volumes:
- 'parse_data:/bitnami/parse'
depends_on:
- mongodb
environment:
- PARSE_DATABASE_HOST=mongodb
- PARSE_DATABASE_PORT_NUMBER=27017
- PARSE_DATABASE_USER=bn_parse
- PARSE_DATABASE_NAME=bitnami_parse
- PARSE_DATABASE_PASSWORD=bitnami123
parse-dashboard:
image: docker.io/bitnami/parse-dashboard:5
ports:
- '80:4040'
volumes:
- 'parse_dashboard_data:/bitnami'
depends_on:
- parse
volumes:
mongodb_data:
driver: local
parse_data:
driver: local
parse_dashboard_data:
driver: local
@@ -10,7 +10,7 @@ fi
script=$1
exit_code="${2:-96}"
fail_if_not_present="${3:-y}"
fail_if_not_present="${3:-n}"
if test -f "$script"; then
sh $script
+43 -68
View File
@@ -9,15 +9,10 @@ Trademarks: This software listing is packaged by Bitnami. The respective tradema
## TL;DR
### Docker Compose
```console
curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/parse-dashboard/docker-compose.yml > docker-compose.yml
docker-compose up -d
docker run --name parse-dashboard bitnami/parse-dashboard:latest
```
You can find the default credentials and available configuration options in the [Environment Variables](#environment-variables) section.
## Why use Bitnami Images?
* Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems.
@@ -43,22 +38,13 @@ Subscribe to project updates by watching the [bitnami/containers GitHub repo](ht
## Prerequisites
To run this application you need Docker Engine 1.10.0. Docker Compose is recomended with a version 1.6.0 or later.
To run this application you need Docker Engine 1.10.0.
## How to use this image
### Run the application using Docker Compose
The main folder of this repository contains a functional [`docker-compose.yml`](https://github.com/bitnami/containers/blob/main/bitnami/parse-dashboard/docker-compose.yml) file. Run the application using it as shown below:
```console
curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/parse-dashboard/docker-compose.yml > docker-compose.yml
docker-compose up -d
```
### Run the application manually
If you want to run the application manually instead of using docker-compose, these are the basic steps you need to run:
If you want to run the application manually instead of using the Helm chart, these are the basic steps you need to run:
1. Create a network for the application, Parse Server and the database:
@@ -98,31 +84,6 @@ The above examples define docker volumes namely `mongodb_data`, `parse_data` and
To avoid inadvertent removal of these volumes you can [mount host directories as data volumes](https://docs.docker.com/engine/tutorials/dockervolumes/). Alternatively you can make use of volume plugins to host the volume data.
#### Mount host directories as data volumes with Docker Compose
This requires a minor change to the [`docker-compose.yml`](https://github.com/bitnami/containers/blob/main/bitnami/parse-dashboard/docker-compose.yml) file present in this repository:
```yaml
services:
mongodb:
...
volumes:
- '/path/to/mongodb-persistence:/bitnami'
...
parse:
...
volumes:
- '/path/to/parse-persistence:/bitnami'
...
parse-dashboard:
...
volumes:
- '/path/to/parse_dashboard-persistence:/bitnami'
...
```
> NOTE: As this is a non-root container, the mounted files and directories must have the proper permissions for the UID `1001`.
#### Mount host directories as data volumes using the Docker command line
In this case you need to specify the directories to mount on the run command. The process is the same than the one previously shown:
@@ -173,8 +134,7 @@ Bitnami provides up-to-date versions of Parse Dashboard, including security patc
2. Stop your container
* For docker-compose: `$ docker-compose stop parse-dashboard`
* For manual execution: `$ docker stop parse-dashboard`
* `$ docker stop parse-dashboard`
3. Take a snapshot of the application state
@@ -188,21 +148,50 @@ Bitnami provides up-to-date versions of Parse Dashboard, including security patc
4. Remove the currently running container
* For docker-compose: `$ docker-compose rm parse-dashboard`
* For manual execution: `$ docker rm parse-dashboard`
* `$ docker rm parse-dashboard`
5. Run the new image
* For docker-compose: `$ docker-compose up parse-dashboard`
* For manual execution (mount the directories if needed): `docker run --name parse-dashboard bitnami/parse-dashboard:latest`
* Mount the directories if needed: `docker run --name parse-dashboard bitnami/parse-dashboard:latest`
## Configuration
### Environment variables
When you start the parse-dashboard image, you can adjust the configuration of the instance by passing one or more environment variables either on the docker-compose file or on the `docker run` command line. If you want to add a new environment variable:
#### Customizable environment variables
* For docker-compose add the variable name and value under the application section in the [`docker-compose.yml`](https://github.com/bitnami/containers/blob/main/bitnami/parse-dashboard/docker-compose.yml) file present in this repository:
| Name | Description | Default Value |
|----------------------------------------------|---------------------------------------------------------|---------------|
| `PARSE_DASHBOARD_ENABLE_HTTPS` | Whether to enable HTTPS for Parse Dashboard by default. | `no` |
| `PARSE_DASHBOARD_EXTERNAL_HTTP_PORT_NUMBER` | External HTTP port for Parse Dashboard. | `80` |
| `PARSE_DASHBOARD_EXTERNAL_HTTPS_PORT_NUMBER` | External HTTPS port for Parse Dashboard. | `443` |
| `PARSE_DASHBOARD_PARSE_HOST` | Parse host name. | `parse` |
| `PARSE_DASHBOARD_PARSE_HOST` | Parse host name. | `127.0.0.1` |
| `PARSE_DASHBOARD_PORT_NUMBER` | Port number in which Parse Dashboard will run. | `4040` |
| `PARSE_DASHBOARD_PARSE_PORT_NUMBER` | Parse server port number. | `1337` |
| `PARSE_DASHBOARD_PARSE_APP_ID` | A sample string environment variable. | `myappID` |
| `PARSE_DASHBOARD_APP_NAME` | Parse Dashboard App name. | `MyDashboard` |
| `PARSE_DASHBOARD_PARSE_MASTER_KEY` | Parse server master key. | `mymasterKey` |
| `PARSE_DASHBOARD_PARSE_MOUNT_PATH` | Parse Dashboard mount path. | `/parse` |
| `PARSE_DASHBOARD_PARSE_PROTOCOL` | Parse server protocol. | `http` |
| `PARSE_DASHBOARD_USERNAME` | Parse Dashboard user name. | `user` |
| `PARSE_DASHBOARD_PASSWORD` | Parse Dashboard user password. | `bitnami` |
#### Read-only environment variables
| Name | Description | Value |
|--------------------------------|--------------------------------------------------|---------------------------------------------------|
| `PARSE_DASHBOARD_BASE_DIR` | Parse installation directory. | `${BITNAMI_ROOT_DIR}/parse-dashboard` |
| `PARSE_DASHBOARD_TMP_DIR` | Parse temp directory. | `${PARSE_DASHBOARD_BASE_DIR}/tmp` |
| `PARSE_DASHBOARD_LOGS_DIR` | Parse logs directory. | `${PARSE_DASHBOARD_BASE_DIR}/logs` |
| `PARSE_DASHBOARD_PID_FILE` | Parse PID file. | `${PARSE_DASHBOARD_TMP_DIR}/parse-dashboard.pid` |
| `PARSE_DASHBOARD_LOG_FILE` | Parse logs file. | `${PARSE_DASHBOARD_LOGS_DIR}/parse-dashboard.log` |
| `PARSE_DASHBOARD_CONF_FILE` | Configuration file for Parse Dashboard. | `${PARSE_DASHBOARD_BASE_DIR}/config.json` |
| `PARSE_DASHBOARD_VOLUME_DIR` | Parse directory for mounted configuration files. | `${BITNAMI_VOLUME_DIR}/parse-dashboard` |
| `PARSE_DASHBOARD_DAEMON_USER` | Parse system user. | `parsedashboard` |
| `PARSE_DASHBOARD_DAEMON_GROUP` | Parse system group. | `parsedashboard` |
When you start the parse-dashboard image, you can adjust the configuration of the instance by passing one or more environment variables on the `docker run` command line. If you want to add a new environment variable:
```yaml
parse-dashboard:
@@ -218,26 +207,12 @@ parse-dashboard:
docker run -d -e PARSE_DASHBOARD_PASSWORD=my_password -p 80:4040 --name parse-dashboard -v /your/local/path/bitnami/parse_dashboard:/bitnami --network=parse_dashboard-tier bitnami/parse-dashboard
```
Available environment variables:
#### User and Site configuration
* `PARSE_DASHBOARD_ENABLE_HTTPS`: Whether to enable HTTPS for Parse Dashboard by default. Default: **no**
* `PARSE_DASHBOARD_EXTERNAL_HTTP_PORT_NUMBER`: External HTTP port for Parse Dashboard. Default: **80**
* `PARSE_DASHBOARD_EXTERNAL_HTTPS_PORT_NUMBER`: External HTTPS port for Parse Dashboard. Default: **80**
* `PARSE_DASHBOARD_PARSE_HOST`: Parse server host. Default: **parse**
* `PARSE_DASHBOARD_PORT_NUMBER`: Port number in which Parse Dashboard will run. Default: **4040**
* `PARSE_DASHBOARD_PARSE_PORT_NUMBER`: Parse server port number. Default: **1337**
* `PARSE_DASHBOARD_PARSE_APP_ID`: Parse app ID. Default: **myappID**
* `PARSE_DASHBOARD_PARSE_APP_NAME`: Parse app name. Default: **myappID**
* `PARSE_DASHBOARD_PARSE_MASTER_KEY`: Parse master key: **mymasterKey**
* `PARSE_DASHBOARD_PARSE_MOUNT_PATH`: Parse server mount path. Default: **/parse**
* `PARSE_DASHBOARD_PARSE_PROTOCOL`: Parse server protocol. Default: **https**
* `PARSE_DASHBOARD_USERNAME`: Parse Dashboard user name. Default: **user**
* `PARSE_DASHBOARD_PASSWORD`: Parse Dashboard password. Default: **bitnami**
## Notable Changes
### Starting January 16, 2024
* The `docker-compose.yaml` file has been removed, as it was solely intended for internal testing purposes.
### 2.1.0-debian-10-r328
* The size of the container image has been decreased.