This repository has been archived by the owner on Feb 3, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding initial version of private stacks, fix bug for stacks without …
…port explicitly look for an NA setting, add ability to launch by stack URL and note the URL in the management page
- Loading branch information
Showing
4 changed files
with
282 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM lsiobase/alpine:3.9 as buildstage | ||
|
||
# Build args | ||
ARG INPUT | ||
ARG PASS | ||
|
||
RUN \ | ||
echo "**** install packages ****" && \ | ||
apk add --no-cache --upgrade \ | ||
gnupg && \ | ||
echo "**** encode text blob ****" && \ | ||
echo "${INPUT}" > /input && \ | ||
echo "${PASS}" | gpg \ | ||
--output /enc.gpg \ | ||
--batch --yes \ | ||
--pinentry-mode loopback \ | ||
--passphrase-fd 0 -c /input | ||
|
||
# Runtime Stage | ||
FROM lsiobase/alpine:3.9 | ||
|
||
RUN \ | ||
echo "**** install packages ****" && \ | ||
apk add --no-cache --upgrade \ | ||
gnupg | ||
|
||
# Add local files | ||
COPY root/ / | ||
COPY --from=buildstage /enc.gpg /enc.gpg | ||
|
||
ENTRYPOINT ["/bin/bash"] | ||
CMD ["/gimmie.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/with-contenv bash | ||
|
||
# Output the file contents to stdout | ||
echo ${PASS} | \ | ||
gpg -q --output - \ | ||
--batch --yes \ | ||
--pinentry-mode loopback \ | ||
--passphrase-fd 0 -d /enc.gpg |
Oops, something went wrong.