UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Plugins
Mattermost Admin Plugin
Commits
c0d4e93a
Commit
c0d4e93a
authored
May 27, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Dockerfile
Dockerfile
+6
-6
No files found.
Dockerfile
View file @
c0d4e93a
...
...
@@ -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"]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment