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

Add Dockerfile #17

Merged
merged 3 commits into from
Nov 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM ubuntu

COPY . .

ENTRYPOINT [ "./rs" ]
25 changes: 25 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
set positional-arguments
export docker_image_name := "releng-scripts"
default_owner := "paritytech"

# List available commands
_default:
just --choose --chooser "fzf +s -x --tac --cycle"

# Show some help
help:
just --list

tests *args:
./tasks/tests.sh "$@"
Expand All @@ -8,3 +18,18 @@ linters *args:

rs *args:
./rs "$@"

# Build the Docker image
build_docker_image owner=default_owner:
docker build -t $docker_image_name -t {{owner}}/$docker_image_name .
docker images | grep "rs"

run *args:
docker run --rm -it rs "$@"

# Push the docker image
publish_docker_image owner=default_owner: (build_docker_image owner)
docker push {{owner}}/$docker_image_name

# Publish everything
publish: publish_docker_image