-
Notifications
You must be signed in to change notification settings - Fork 25
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
TCB - docker-in-docker build #202
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,27 @@ jobs: | |
build-deploy: | ||
runs-on: ubuntu-latest | ||
name: Build & Deploy TorizonCore | ||
container: ubuntu:23.10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
id: cache | ||
with: | ||
path: storage/ | ||
key: tcb | ||
- name: Set abs-path file | ||
run: | | ||
echo "${{ github.workspace }}" >> abs-path | ||
cat abs-path | ||
- name: Install build tools in container | ||
run: | | ||
apt-get update | ||
apt-get install -y wget curl libicu-dev | ||
curl -fsSL https://get.docker.com -o get-docker.sh | ||
sh get-docker.sh | ||
|
||
wget -nv https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/powershell_7.4.2-1.deb_amd64.deb | ||
dpkg -i powershell_7.4.2-1.deb_amd64.deb | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so, maybe this is needed on your end because you host your own runner. But, on Github Actions the default image already has these dependencies. Would be nice to first identify whether the dependencies are already installed before installing it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is needed because I'm running the build inside a container, on the shared and self-hosted runners. Both will spin up a docker Ubuntu:23.04 container, mount the local filesystem, and run the build commands. It's good for reproducibility. If you used GitLab, running dind is standard. |
||
|
||
- name: Initial Setup | ||
shell: bash | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was a typo
with
should bewill
, right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes ..will be used