Skip to content

Commit

Permalink
Merge pull request #156 from Qwtdgh/main
Browse files Browse the repository at this point in the history
dockered owner
  • Loading branch information
SongY123 authored Aug 7, 2023
2 parents 6d4701b + 4a571f5 commit d2e5781
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM openjdk:11
COPY ../dataset ./dataset
WORKDIR /release
COPY ../release/config ./config
COPY ../release/bin ./bin
COPY ../release/adapter ./adapter
ADD ../release/*.sh ./
ENTRYPOINT sh -c 'chmod 777 ./owner.sh' &&\
sh -c './owner.sh start ./config/owner1.json' &&\
sh -c 'tail -f /dev/null'
6 changes: 6 additions & 0 deletions scripts/build/image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -ex

./scripts/build/package.sh
docker build -f ./docker/Dockerfile -t openhufu-server:1.0 .
5 changes: 5 additions & 0 deletions scripts/build/setup_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

#set -ex

docker run -d -t --name=openhufu-server openhufu-server:1.0
5 changes: 5 additions & 0 deletions scripts/build/stop_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

#set -ex

docker stop openhufu-server

0 comments on commit d2e5781

Please sign in to comment.