add swaphost and host expansion instruction doc #274
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
name: Docker Build | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
paths-ignore: | |
- ".github/workflows/**" | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- ".github/workflows/**" | |
workflow_dispatch: | |
jobs: | |
build-juno-docker: | |
strategy: | |
matrix: | |
# os: [ubuntu-latest, macos-latest] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
env: | |
PROXY_TLS_PORT: 5080 | |
PROXY_TCP_PORT: 8080 | |
PROXY_MON_PORT: 8088 | |
STORAGE_MON_PORT: 8089 | |
steps: | |
- name: Get code | |
uses: actions/[email protected] | |
- name: Check openssl version dependencies | |
run: | | |
echo "Openssl Version:" `openssl version` | |
- name: Set up Docker | |
# uses: docker-practice/actions-setup-docker@master | |
# uses: crazy-max/ghaction-setup-docker@v2 | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: | | |
brew install docker | |
colima start | |
# For testcontainers to find the Colima socket | |
# https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running | |
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock | |
- name: Docker Version Check | |
run: docker version | |
- name: Build docker containers | |
run: docker/build.sh | |
- name: Start juno containers | |
id: dockerStart | |
run: | | |
docker/start.sh | |
- name: Step To run on failure | |
if: failure() && steps.dockerStart.outcome == 'failure' | |
run: | | |
docker logs etcd | |
docker logs clustercfg | |
docker logs storageserv | |
docker logs proxy | |
docker/shutdown.sh | |
- name: Docker containers Status | |
run: | | |
echo "Wait for service warm up..." | |
sleep 60 | |
echo "docker ps" | |
docker ps | |
# - name: Connectivity Checks | |
# id: dockerCheck | |
# run: | | |
# echo "Connectivity checks on listening ports" | |
# echo "Proxy TLS" | |
# nc -vz localhost ${PROXY_TLS_PORT} | |
# echo "Proxy TCP" | |
# nc -vz localhost ${PROXY_TCP_PORT} | |
# echo "Proxy Admin" | |
# nc -vz localhost ${PROXY_MON_PORT} | |
# echo "Storage Admin" | |
# nc -vz localhost ${STORAGE_MON_PORT} | |
# - name: Step To run on failure of Connectivity Check | |
# if: failure() && steps.dockerCheck.outcome == 'failure' | |
# run: | | |
# docker logs etcd | |
# docker logs clustercfg | |
# docker logs storageserv | |
# docker logs proxy | |
# docker/shutdown.sh | |
# - name: Test | |
# id: junoclientTest | |
# run: | | |
# docker/test.sh | |
# - name: Step To run on failure of Test | |
# if: failure() && steps.junoclientTest.outcome == 'failure' | |
# run: | | |
# docker logs etcd | |
# docker logs clustercfg | |
# docker logs storageserv | |
# docker logs proxy | |
# docker/shutdown.sh | |
- name: Shutdown juno containers | |
run: | | |
echo "Shutdown juno containers" | |
docker/shutdown.sh | |
echo "docker ps" | |
docker ps |