-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (38 loc) · 1.51 KB
/
Copy pathDockerfile
File metadata and controls
55 lines (38 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# https://github.com/dbeaver/cloudbeaver/wiki/Run-Docker-Container
# https://github.com/dbeaver/cloudbeaver/wiki/Server-configuration#automatic-server-configuration
FROM dbeaver/cloudbeaver:latest
ARG BUILD_DATE
ARG BUILD_IMAGE
COPY helx /helx
RUN find /helx -type f -exec chmod +x {} +
RUN groupadd cloudbeaver
RUN useradd -ms /bin/sh -g 0 cloudbeaver
RUN usermod -aG 0 cloudbeaver
RUN chmod g+w /etc/passwd /etc/group /etc/environment
RUN chown -R cloudbeaver ./ /home /helx /opt/cloudbeaver
# Allows HeLx to proxy the app
ENV CLOUDBEAVER_APP_FORWARD_PROXY=true
USER cloudbeaver
ENV NB_USER=joshua-seals
ENV CB_ADMIN_NAME="cbadmin"
ENV CB_ADMIN_PASSWORD="P@55word123"
WORKDIR /helx
ENTRYPOINT [ "./helx-init.sh" ]
LABEL org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.title="cloudbeaver" \
org.opencontainers.image.authors="Joshua Seals" \
org.opencontainers.image.source="https://github.com/helxplatform/cloudbeaver" \
org.opencontainers.image.revision="${BUILD_IMAGE}" \
org.opencontainers.image.vendor="Renci"
# Persistence space
# /opt/cloudbeaver/workspace
# FROM alpine:latest
# RUN apk update && apk add bash
# ENV JAVA_HOME=/opt/java/openjdk
# COPY --from=eclipse-temurin:17-alpine $JAVA_HOME $JAVA_HOME
# ENV PATH="${JAVA_HOME}/bin:${PATH}"
# ENV CLOUDBEAVER_HOME="/opt/cloudbeaver"
# COPY --from=dbeaver/cloudbeaver:latest $CLOUDBEAVER_HOME $CLOUDBEAVER_HOME
# WORKDIR "/opt/cloudbeaver"
# RUN chmod +x run-server.sh
# ENTRYPOINT ["./run-server.sh"]