Skip to content

Commit

Permalink
feat: Add start_docker function
Browse files Browse the repository at this point in the history
  • Loading branch information
jhwohlgemuth committed Oct 1, 2024
1 parent e5612a1 commit 0db11e4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jobs:
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
# - you want to enable the Branch-Protection check on a *public* repository, or
# - you are installing Scorecards on a *private* repository
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
# repo_token: ${{ secrets.SCORECARD_TOKEN }}

# Public repositories:
Expand All @@ -60,7 +59,8 @@ jobs:
# of the value entered here.
publish_results: true

# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# Upload the results as artifacts (optional).
# Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ RUN /tmp/scripts/install_dependencies.sh \
&& mv /tmp/scripts/install_musl.sh /usr/local/bin/install_musl \
&& mv /tmp/scripts/install_pinokio.sh /usr/local/bin/install_pinokio \
&& mv /tmp/scripts/install_xr0.sh /usr/local/bin/install_xr0 \
&& mv /tmp/scripts/start_docker.sh /usr/local/bin/start_docker \
&& mv /tmp/scripts/start_pinokio.sh /usr/local/bin/start_pinokio \
&& /usr/bin/pwsh -Command /tmp/scripts/Install-Modules.ps1 \
&& eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" \
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ lint:
hadolint ./Dockerfile.$$image ; \
done
@hadolint ./Dockerfile
# @hadolint ./.github/actions/build-and-push-image/Dockerfile
@yamllint .
@checkov
check:
Expand Down Expand Up @@ -91,6 +90,7 @@ SCRIPTS = \
./provision/scripts/dev/install_ohmyzsh.sh \
./provision/scripts/dev/install_pinokio.sh \
./provision/scripts/dev/install_xr0.sh \
./provision/scripts/dev/start_docker.sh \
./provision/scripts/dev/start_pinokio.sh \
./provision/scripts/gold/install_aeneas.sh \
./provision/scripts/gold/install_coq.sh \
Expand Down
11 changes: 11 additions & 0 deletions provision/scripts/dev/start_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! /bin/bash
set -e

requires \
docker
main() {
local COUNT="${1:-65536}"
ulimit -n "${COUNT}"
service docker start
}
main "$@"

1 comment on commit 0db11e4

@jhwohlgemuth
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.