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
218f55a5
Commit
218f55a5
authored
May 27, 2021
by
Ajith Gudem
Browse files
Minor tweaks around variables
parent
2410b310
Pipeline
#281370
failed with stages
in 26 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
Dockerfile
Dockerfile
+6
-4
install-mattermost-plugin.sh
install-mattermost-plugin.sh
+1
-1
No files found.
Dockerfile
View file @
218f55a5
...
...
@@ -15,10 +15,12 @@ ARG MM_SERVER_VERSION=5.34.2
# RUN tar xvf linux_amd64.tar
FROM
registry1.dso.mil/ironbank/opensource/mattermost/mattermost:${MM_SERVER_VERSION}
ARG
PLUGIN_ARTIFACT=mil.dso.p1.mattermost-admin-plugin-1.0.3-rc.tar.gz
ARG
PLUGIN_VERSION=1.0.3-rc
ARG
PLUGIN_ID=mil.dso.p1.mattermost-admin-plugin
ENV
PLUGIN_ARTIFACT=${PLUGIN_ID}-${PLUGIN_VERSION}
ARG
PLUGIN_VERSION=1.0.3-rc
ENV
PLUGIN_ID=${PLUGIN_ID}
ENV
PLUGIN_ARTIFACT=${PLUGIN_ID}-${PLUGIN_VERSION}.tar.gz
# ENV PLUGIN_ARTIFACT=${PLUGIN_ARTIFACT}
# FROM registry1.dso.mil/ironbank/docker/scratch:ironbank
# RUN echo $PLUGIN_ID
...
...
@@ -33,7 +35,7 @@ WORKDIR /scripts
COPY
call_mm_plugin_installer.sh .
COPY
install-mattermost-plugin.sh .
# COPY *.tar.gz .
COPY
${PLUGIN_ARTIFACT}
.tar.gz
.
COPY
${PLUGIN_ARTIFACT} .
# COPY --from=builder /tmp/${PLUGIN_ID}-${PLUGIN_VERSION}}.tar.gz .
# COPY --from=builder /tmp/install-mattermost-plugin.sh .
# COPY --from=builder /tmp/call_mm_plugin_installer.sh .
...
...
install-mattermost-plugin.sh
View file @
218f55a5
...
...
@@ -36,7 +36,7 @@ echo " using Token: $token";
result
=
$(
/mattermost/bin/mmctl plugin delete
${
PLUGIN_ID
}
)
# install the plugin with the tar.gz file
result
=
$(
/mattermost/bin/mmctl plugin add
${
PLUGIN_
ID
}
-
${
PLUGIN_VERSION
}
.tar.gz
--format
json
)
result
=
$(
/mattermost/bin/mmctl plugin add
${
PLUGIN_
ARTIFACT
}
--format
json
)
# if the install was successful, then enable it
result
=
$(
/mattermost/bin/mmctl plugin
enable
${
PLUGIN_ID
}
--format
json
)
...
...
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