Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purpose of build/pack.sh #37

Open
bnhf opened this issue Feb 14, 2022 · 1 comment
Open

Purpose of build/pack.sh #37

bnhf opened this issue Feb 14, 2022 · 1 comment

Comments

@bnhf
Copy link

bnhf commented Feb 14, 2022

Can anyone enlighten me on what the build/pack.sh script does? I'm including it below:

#!/bin/bash

set -e

time docker run \
    -v "$PWD/../":/go/src/github.com/bnhf/openvpn-tap-external-web-ui \
    --rm \
    -w /usr/src/myapp \
    tyzbit/beego:1.9.4 \
    sh -c "cd /go/src/github.com/bnhf/openvpn-tap-external-web-ui/ && bee version && bee pack -exr='^vendor|^data.db|^build|^README.md|^docs'"
cd github.com

Thanks!

@bnhf
Copy link
Author

bnhf commented Feb 15, 2022

Can anyone enlighten me on what the build/pack.sh script does? I'm including it below:

#!/bin/bash

set -e

time docker run \
    -v "$PWD/../":/go/src/github.com/bnhf/openvpn-tap-external-web-ui \
    --rm \
    -w /usr/src/myapp \
    tyzbit/beego:1.9.4 \
    sh -c "cd /go/src/github.com/bnhf/openvpn-tap-external-web-ui/ && bee version && bee pack -exr='^vendor|^data.db|^build|^README.md|^docs'"
cd github.com

Thanks!

Answering my own question here, as I corresponded with @tyzbit who's version of this repository I forked. The pack.sh script is intended to create the tar.gz archive used in the Docker build. It makes sense that this is the purpose, as I had to figure out what was needed, in addition to the executable created by "bee run", by looking in @tyzbit's container.

The script is doing this using a Beego Docker container with the 1.9.4 version of Beego. This may not be necessary however, as the web-ui appears to be working fine with my manual build of the archive, and it appears to also work to run just this portion of the script:

bee pack -exr='^vendor|^data.db|^build|^README.md|^docs'

from the parent directory of the repository as it exists on your local machine, e.g. openvpn-web-ui. If you want to create the archive manually, I listed the files I believe are necessary in the README.md of my fork of this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant