update openim environment and status

Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com>
pull/1696/head
Xinwei Xiong (cubxxw) 2 years ago
parent 62cdbb648b
commit 4f76ad9ac6

@ -281,12 +281,18 @@ jobs:
sudo make init
sudo make image
# https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
- name: Get Docker Images and Processes
id: docker_info
- name: Get Docker Images
id: docker_images
run: |
echo "images=$(sudo docker images)" >> $GITHUB_ENV
echo "processes=$(sudo docker ps)" >> $GITHUB_ENV
echo "images<<EOF" >> $GITHUB_ENV
sudo docker images | awk '{print $1, $2, $3, $4, $5, $6, $7, $8}' >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Get Docker Processes
id: docker_processes
run: |
echo "processes<<EOF" >> $GITHUB_ENV
sudo docker ps | awk '{print $1, $2, $3, $4, $5, $6, $7, $8}' >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Comment PR with Docker Info
uses: ./ # Replace with the appropriate action to comment on PR
with:
@ -298,4 +304,3 @@ jobs:
comment_tag: docker_info
reactions: eyes, rocket
mode: recreate
# Include any other steps as needed

@ -16,7 +16,7 @@ services:
ports:
- "${MONGO_PORT:-37017}:27017"
container_name: mongo
command: ["/bin/bash", "-c", "/docker-entrypoint-initdb.d/mongo-init.sh && docker-entrypoint.sh mongod --wiredTigerCacheSizeGB 1 --auth"]
command: ["/bin/bash", "-c", "/docker-entrypoint-initdb.d/mongo-init.sh; docker-entrypoint.sh mongod --wiredTigerCacheSizeGB 1 --auth"]
volumes:
- "${DATA_DIR:-./}/components/mongodb/data/db:/data/db"
- "${DATA_DIR:-./}/components/mongodb/data/logs:/data/logs"

Loading…
Cancel
Save