- docker image: dockerhub
- source code: github
- docs: docker-systemd-docs
- docker image of centos with systemd
- bind with sshd
- mainly used for testing environment construction
- only supporting amd64 and arm64
- only supporting centos7 and centos8 as base image
- "UseDNS no" written to /etc/ssh/sshd_config
- add test scripts for sshd
- requirements
- system os and arch
- linux & amd64 (tested with centos 7)
- linux & arm64 (not tested, but it will be okay)
- mac & amd64 (not tested, but it will be okay)
- mac & arm64 (tested with mac mini whose chip is apple m1)
- windows & x86_64 (not tested, but it will be okay)
- jdk 8 or higher to run gradle scripts
- docker to build/run service
- system os and arch
- start service
- build docker image
- optional
-
./gradlew :buildDockerImage
- run docker container
-
./gradlew :runDockerContainer
- ssh service will be exposed with port 1022
-
- build docker image
- test service
- TODO
- stop service
-
./gradlew :stopDockerContainer
-
- you can also jump into the container with ssh
-
ssh -o "UserKnownHostsFile /dev/null" -p 1022 root@localhost
-
- build multi-platform images and push them to docker registry
-
./gradlew :pushDockerImage
- you need an environment to build multi-platform images: develop with docker
-