UNCLASSIFIED

Commit c0d4e93a authored by Ajith Gudem's avatar Ajith Gudem
Browse files

Trying to create the directory as root user for mmctl to work

parent 6c1d42f6
Pipeline #281225 passed with stages
in 5 minutes and 15 seconds
......@@ -8,13 +8,10 @@ WORKDIR /tmp
COPY call_mm_plugin_installer.sh .
COPY install-mattermost-plugin.sh .
# COPY mattermost-admin-plugin-1.0.2-rc.tar.gz .
COPY mil.dso.p1.mattermost-admin-plugin-1.0.3-rc.tar.gz .
# COPY linux_amd64.tar .
# RUN tar xvf linux_amd64.tar
FROM registry1.dso.mil/ironbank/opensource/mattermost/mattermost:5.34.2
# FROM registry1.dso.mil/ironbank/google/golang/golang-1.16:1.16
# FROM registry1.dso.mil/ironbank/docker/scratch:ironbank
# ENV TARGET_URL="URL IS UNDEFINED"
......@@ -30,8 +27,11 @@ COPY --from=builder /tmp/mil.dso.p1.mattermost-admin-plugin-1.0.3-rc.tar.gz .
COPY --from=builder /tmp/install-mattermost-plugin.sh .
COPY --from=builder /tmp/call_mm_plugin_installer.sh .
# RUN sudo mkdir -p /home/mattermost
# RUN sudo chown mattermost:mattermost /home/mattermost
USER root
RUN mkdir -p /home/mattermost && chown 2000:2000 /home/mattermost
USER 2000
# RUN ln -s /tmp /home/mattermost
# The base image sets the UID to mattermost
# USER 1001
......@@ -39,7 +39,7 @@ COPY --from=builder /tmp/call_mm_plugin_installer.sh .
# the entrypoint script calls the main installer which uses ENV vars for token and url to contact the target and install the plugin
ENTRYPOINT [ "./call_mm_plugin_installer.sh" ]
ENTRYPOINT [ "./call_mm_plugin_installer.sh" ]
# ENTRYPOINT [ "./install-mattermost-plugin.sh" ]
# ENTRYPOINT ["tail", "-f", "/dev/null"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment