forked from Hubs-Foundation/hubs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pick retpack code from newer version of hubs
- Loading branch information
aspalding
committed
Oct 6, 2023
1 parent
9d49b6f
commit a45a551
Showing
2 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
if ! command -v docker &> /dev/null; then | ||
echo "ERR: this script requires docker (https://docs.docker.com/engine/install/)" | ||
exit 1 | ||
fi | ||
|
||
DOCKER_DEFAULT_PLATFORM=linux/amd64 | ||
echo -e "\n ### building ### " | ||
docker build -f RetPageOriginDockerfile -t hubs:retpack . | ||
|
||
echo -e "\n ### packing ### " | ||
docker run -v $PWD/.retpack/:/tmp/ \ | ||
--entrypoint sh hubs:retpack \ | ||
-c 'cd /www/hubs/ && tar -czvf /tmp/retpack.tar.gz .' | ||
|
||
echo -e "\n ### done ### " | ||
ls -lha ./.retpack/retpack.tar.gz |