summaryrefslogtreecommitdiff
path: root/hack/make/run
Commit message (Collapse)AuthorAgeFilesLines
* Improved readability of the run hack scriptKonrad Ponichtera2022-05-101-32/+40
| | | | Signed-off-by: Konrad Ponichtera <konpon96@gmail.com>
* Added Delve debugger to the development container (including instructions in ↵Konrad Ponichtera2022-04-261-4/+31
| | | | | | the contribution guide). Signed-off-by: Konrad Ponichtera <konpon96@gmail.com>
* rootless: graduate from experimentalAkihiro Suda2020-04-071-4/+0
| | | | | | | | | Close #40484 Note that the support for cgroup v2 isn't ready for production yet, regardless to rootful or rootless. Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
* hack: support $DOCKER_ROOTLESS for testing rootlessAkihiro Suda2020-03-101-3/+24
| | | | | | | | | | | | ``` $ DOCKER_EXPERIMENTAL=1 DOCKER_ROOTLESS=1 TEST_SKIP_INTEGRATION_CLI=1 \ make test-integration ``` test-integration-cli is unsupported currently. Also, tests that spawn custom daemon (testutil/daemon) are skipped. Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
* run shfmtAkihiro Suda2020-03-031-1/+0
| | | | | | git grep --name-only '^#!' | egrep -v '(vendor|\.go|Jenkinsfile)' | xargs shfmt -w -bn -ci -sr Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
* Shell scripts: fix bare variablesSebastiaan van Stijn2019-01-101-4/+4
| | | | | | This makes my IDE a bit more silent :-) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Revert "Bash scripts; use double brackets, fix bare variables, add quotes"Sebastiaan van Stijn2019-01-101-7/+7
| | | | | | This reverts commit 297b30df5ff4deaaedb6ceb17d7bd2e306a580ab. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Bash scripts; use double brackets, fix bare variables, add quotesSebastiaan van Stijn2018-12-241-7/+7
| | | | | | | | | | | These scripts explicitly use Bash, so we should be able to use `[[` instead of `[` (which seems to be recommended). Also added curly brackets to some bare variables, and quoted some paths. This makes my IDE a bit more silent :-) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Allow to add any args when doing a make runVincent Demeester2018-06-011-2/+2
| | | | | | | `make DOCKERD_ARGS=--init binary run` should start the daemon with `--init` as flags (with any other "automagically" added ones). Signed-off-by: Vincent Demeester <vincent@sbr.pm>
* Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash"Tianon Gravi2017-02-131-1/+1
| | | | | | This is especially important for distributions like NixOS where `/bin/bash` doesn't exist, or for MacOS users who've installed a newer version of Bash than the one that comes with their OS. Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
* Add target for `make run`Brian Goff2016-07-081-0/+44
`make run` allows you to fire up a daemon (in a container) just using the existing built binaries. This allows for more rapid iteration instead of dealing with firing up a shell just to start the daemon. By default the daemon will listen on port 2375 on the default network interface. If a port forward is required to access the daemon, the user can set `make DOCKER_PORT=2375 run` to get a port forward on a random port with the daemon listening on port 2375, or `make DOCKER_PORT=2375:2375 run` to get a daemon running with port 2375 forwarded to the daemon running on 2375. Note that the daemon is automatically configured to listen on whatever port is set for the container side of the `DOCKER_PORT` port spec. When running on docker4mac, the user must do the following: ``` $ make BINDDIR=. DOCKER_PORT=2375 run ``` This makes sure the binaries are loaded in the container and a port is forwarded, since it is currently impossible to route traffic from the mac directly to a container IP. To get a fresh binary: ``` $ make BINDDIR=. DOCKER_PORT=2375 binary run ``` Signed-off-by: Brian Goff <cpuguy83@gmail.com>