Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
#!/bin/bash | |
QUERY=query.json | |
time curl -i -XPOST \ | |
-o output.log \ | |
--data "@$QUERY" \ | |
-H "Accept: application/json" \ | |
-H "Content-Type: application/json" \ | |
http://127.0.0.1:7474/db/data/transaction/commit |
Package: * | |
Pin: release n=bullseye-backports | |
Pin-Priority: 900 | |
1. Connect to mongodb instance. | |
~~~ | |
mongod --port 27017 --dbpath /data/db | |
~~~ | |
2. Create user: | |
~~~ | |
use admin | |
db.createUser( | |
{ |
This gist contains files and instructions to setup MongoDB on a simple docker host.
Connections to Mongo are secured using TLS, and the certificate is signed using Let's Encrypt.
MongoExpress is included as well, but should only be used over an SSH tunnel.
Update .env
Make sure docker-compose is available