Skip to content
This repository has been archived by the owner on May 1, 2022. It is now read-only.

Latest commit

 

History

History
65 lines (45 loc) · 2.29 KB

README.md

File metadata and controls

65 lines (45 loc) · 2.29 KB

waypoint-docker

semantic-release

In March 2021, there is no AUR (Arch User Repository) with the latest version for Waypoint available. So I decided to let Waypoint run in a docker container instead of running a local binary. This docker image is pushed to dockerhub.

Usage

Run waypoint with the following command. Note that the default entrypoint is set to waypoint. So you only have to replace <command> with some subcommand like version to perform a waypoint version.

docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v "$PWD:$PWD" -w $PWD -v "$HOME:/home/$USER" --privileged sebastiangaiser/waypoint <command>

Version matrix

Release / Waypoint v0.2.3 v0.2.4 v0.3.0 v0.3.1
v0.1.0 x
v0.2.0 x
v0.3.0 x
v0.4.0 x
v0.5.0 x
v0.6.0 x

How to run it without the docker run command?

You can specify a direct alias or an alias with a script:

Alias:

# Waypoint
alias waypoint="~/.waypoint-cmd.sh"

Script:

#!/bin/zsh

docker run --rm --name waypoint -it --network host -v /var/run/docker.sock:/var/run/docker.sock -v "$PWD:$PWD" -w $PWD -v "$HOME:/home/$USER" --privileged sebastiangaiser/waypoint "$@"

Note: This is only testet with ZSH

Development

Build a new version of the docker image

docker build --build-arg USER=$USER --build-arg DOCKER_GID=$(cut -d: -f3 < <(getent group docker)) -t sebastiangaiser/waypoint:<version> .

Build a new release

For building a new release with semantic-release you have to export GH_TOKEN=<PersonalAccessToken>.

npx semantic-release --no-ci