Skip to content

Commit

Permalink
remove unnecessary config.go
Browse files Browse the repository at this point in the history
1. remove unnecessary config.go
2. update docker_update_bin
  • Loading branch information
chhsiao1981 committed Aug 3, 2023
1 parent 31fc44e commit 2244b5f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 98 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
/swagger
/02-config.run.ini
/03-config.run-in-docker.ini
/ptttype/00-config-production.go
/ptttype/02-config-run.go
**/cover.out
/docker_compose.env

Expand Down
47 changes: 0 additions & 47 deletions ptttype/00-config-production.go

This file was deleted.

47 changes: 0 additions & 47 deletions ptttype/02-config-run.go

This file was deleted.

8 changes: 4 additions & 4 deletions scripts/docker_update_bin.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/bash

if [ "$#" != "2" ]; then
echo "usage: docker_initbbs.sh [BBSHOME] [GOBBS_IMAGE]"
echo "usage: docker_initbbs.sh [BBSHOME] [GOPTTBBS_IMAGE]"
exit 255
fi

BBSHOME=$1
GOBBS_IMAGE=$2
echo "BBSHOME: ${BBSHOME} GOBBS_IMAGE: ${GOBBS_IMAGE}"
GOPTTBBS_IMAGE=$2
echo "BBSHOME: ${BBSHOME} GOPTTBBS_IMAGE: ${GOPTTBBS_IMAGE}"

project=go-pttbbs

docker container stop ${project}
docker container rm ${project}
docker run --name ${project} -v ${BBSHOME}:/home/bbs ${GOBBS_IMAGE} sh -c 'mkdir -p /home/bbs/bin && cp /opt/bbs/bin/* /home/bbs/bin'
docker run --name ${project} -v ${BBSHOME}:/home/bbs ${GOPTTBBS_IMAGE} sh -c 'mkdir -p /home/bbs/bin && cp /opt/bbs/bin/* /home/bbs/bin'

0 comments on commit 2244b5f

Please sign in to comment.