Skip to content

Commit

Permalink
Initial release (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
cvele authored May 28, 2024
1 parent a1738b3 commit 4d768be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-mongodb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Update CHANGELOG.md
run: |
echo "### Version ${{ env.VERSION }}" > temp_CHANGELOG.md
git log -1 --pretty=format:%B >> mongodb/CHANGELOG.md
git log -1 --pretty=format:%B >> temp_CHANGELOG.md
echo "" >> temp_CHANGELOG.md
cat mongodb/CHANGELOG.md >> temp_CHANGELOG.md
mv temp_CHANGELOG.md mongodb/CHANGELOG.md
Expand Down
5 changes: 4 additions & 1 deletion mongodb/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@
"type": "rw"
}
},
"icon": "icon.png"
"icon": "icon.png",
"privileged": [
"SYS_PTRACE"
]
}
12 changes: 2 additions & 10 deletions mongodb/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,8 @@ if [ -z "${MONGO_INITDB_ROOT_USERNAME}" ] || [ -z "${MONGO_INITDB_ROOT_PASSWORD}
exit 1
fi

# Add additional arguments to the command if provided
if [[ "${1:0:1}" = '-' ]]; then
set -- mongod "$@"
fi

# Ensure the mongod command runs properly
if [[ "$1" == "mongod" ]]; then
exec "$@" --bind_ip_all --port 27017 --auth
else
exec "$@"
if [ "${1:0:1}" = '-' ]; then
set -- mongod "$@"
fi

originalArgOne="$1"
Expand Down

0 comments on commit 4d768be

Please # to comment.