Skip to content
This repository was archived by the owner on Oct 3, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ ENV LANG=en_US.utf8
ENV INSTALL_PREFIX=/usr/local/devconsole-operator

# Create a non-root user and a group with the same name: "devconsole-operator"
ENV F8_USER_NAME=devconsole-operator
RUN useradd --no-create-home -s /bin/bash ${F8_USER_NAME}
ENV USER_NAME=devconsole-operator
RUN useradd --no-create-home -s /bin/bash ${USER_NAME}

COPY bin/devconsole-operator ${INSTALL_PREFIX}/bin/devconsole-operator

# From here onwards, any RUN, CMD, or ENTRYPOINT will be run under the following user
USER ${F8_USER_NAME}
USER ${USER_NAME}

WORKDIR ${INSTALL_PREFIX}

Expand Down
12 changes: 6 additions & 6 deletions Dockerfile.deploy.rhel
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ FROM quay.io/openshiftio/rhel-base-golang:latest
LABEL maintainer "Devtools <devtools@redhat.com>"
LABEL author "Devtools <devtools@redhat.com>"
ENV LANG=en_US.utf8
ENV F8_INSTALL_PREFIX=/usr/local/devconsole-operator
ENV INSTALL_PREFIX=/usr/local/devconsole-operator

# Create a non-root user and a group with the same name: "devconsole-operator"
ENV F8_USER_NAME=devconsole-operator
RUN useradd --no-create-home -s /bin/bash ${F8_USER_NAME}
ENV USER_NAME=devconsole-operator
RUN useradd --no-create-home -s /bin/bash ${USER_NAME}

COPY bin/devconsole-operator ${F8_INSTALL_PREFIX}/bin/devconsole-operator
COPY bin/devconsole-operator ${INSTALL_PREFIX}/bin/devconsole-operator

# From here onwards, any RUN, CMD, or ENTRYPOINT will be run under the following user
USER ${F8_USER_NAME}
USER ${USER_NAME}

WORKDIR ${F8_INSTALL_PREFIX}
WORKDIR ${INSTALL_PREFIX}

ENTRYPOINT [ "bin/devconsole-operator" ]
6 changes: 3 additions & 3 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# TODO: change this to a sane base image
FROM quay.io/openshiftio/toolchain-operator:faab15e

ENV F8_INSTALL_PREFIX=/usr/local/devconsole-operator
ENV INSTALL_PREFIX=/usr/local/devconsole-operator

COPY bin/devconsole-operator ${F8_INSTALL_PREFIX}/bin/devconsole-operator
RUN echo chmod +x ${F8_INSTALL_PREFIX}/bin/devconsole-operator
COPY bin/devconsole-operator ${INSTALL_PREFIX}/bin/devconsole-operator
RUN echo chmod +x ${INSTALL_PREFIX}/bin/devconsole-operator