This file contains hidden or 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
sd_make() { | |
local accesstoken="" | |
local domain="" | |
local subject=$1 | |
local description=$2 | |
echo $1 | |
echo $2 | |
if [ -n "${subject}" -a -n "${description}" ]; then | |
curl "https://${domain}/api/v1/tickets/create" --compressed \ | |
-H "authority: ${domain}" -H 'accept: application/json, text/plain, */*' \ |
This file contains hidden or 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
FROM alpine:3.8 | |
LABEL maintainer "Alex Negulescu <[email protected]>" | |
ENV MONGO_USERNAME root | |
ENV MONGO_PASSWORD password | |
RUN addgroup -S -g 9999 mongodb 2>/dev/null | |
RUN adduser -S -D -h /var/lib/mongodb -s /sbin/nologin -G mongodb -g mongodb -u 9999 mongodb 2>/dev/null |
This file contains hidden or 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
#!/bin/sh | |
# short circuit if first arg is not 'mongod' | |
[ "$1" = "mongod" ] || exec "$@" || exit $? | |
: ${MONGO_USERNAME} | |
: ${MONGO_PASSWORD} | |
# Database owned by mongodb | |
[ "$(stat -c %U /data/db)" = mongodb ] || chown -R mongodb /data/db |