Commit Graph

27 Commits

Author SHA1 Message Date
Tim Hockin 4b9431f9bc Don't run apt-get in e2e build if we can avoid 2022-07-03 11:35:09 -07:00
Tim Hockin bea2954d84 Add -q to apt-get commands 2022-06-25 10:40:55 -07:00
Your 10da5e83bf upgrade base image to address vulnerabilities 2022-06-21 16:19:13 +00:00
Tim Hockin ffe2ac4d2f Change libcurl workaround to be less precise 2021-05-29 09:17:06 -07:00
Tim Hockin 5ecd341782 Downgrade libcurl to avoid HTTP bug 2021-05-27 10:18:34 -07:00
Tim Hockin 79de193be5 Dockerfile: apt install with --no-install-recommends 2021-05-27 10:02:02 -07:00
Tim Hockin 8b4f7d5be5 Dockerfile: use apt-get (more stable) 2021-05-27 09:59:58 -07:00
Tim Hockin 48bc7fbbf9 Dockerfile: use multi-stage for cleaner result 2021-05-27 09:56:29 -07:00
Tim Hockin ed5e78472e Copy all licenses into the container image 2021-03-29 16:54:35 -07:00
Tim Hockin 858cc8d735 Update git from backports
Some bugs have been fixed that impact some users.
2021-03-11 19:23:13 -08:00
Tim Hockin b6a1c61e83 Default the git-sync root dir in container
This should make the container image easier to use, without defaulting
the root dir in non-container usage.
2021-01-21 12:37:07 -08:00
Tim Hockin 02d291c495 Set HOME in Dockerfile
Clean up other comments, too.
2021-01-21 12:37:07 -08:00
David Karlsen 48c7b9aa02
add socat to image to allow for proxying. #279
Signed-off-by: David Karlsen <david@davidkarlsen.com>
2020-09-06 18:59:05 +02:00
Aneesh Joseph 5e19658708
use uid,gid instead of username and groupname 2020-05-03 09:35:00 +05:30
Tim Hockin d507f43105 Build updates
Move to go 1.14

Explicitly apt-get update when building
2020-05-01 14:58:00 -07:00
Tim Hockin 5154ace66d Add --add-user to write UID/GID to passwd 2020-01-03 16:16:15 -08:00
Tim Hockin 2a42fba009 Handle running as pid 1
This detects when it is running as pid 1, and becomes an init process.
Specifically this means handling SIGCHLD and reaping processes
(otherwise they become zombies) and forwarding signals to "real"
process.

We fork and re-exec ourselves so that we only get *this* SIGCHLD for
orphaned processes (re-parented to 1) and not the real events from
running things like git or ssh.
2019-10-27 09:45:27 -07:00
Tim Hockin 98022e4fe8 Don't rebuild the base layers when not needed 2019-10-25 21:00:02 -07:00
Tim Hockin 653bd85fc6 Use debian-base as base image
All of the main Kubernetes components are switching to it, since we can
maintain it more easily.
2019-03-11 17:16:53 -07:00
Tim Hockin 51f19b81c9 Fix SSH
* Create a git-sync user to run as, with an entry in /etc/passwd and
writable homedir

* Remove our own validation of key perms - let SSH do that.

* Update docs,
2019-02-07 16:32:01 -08:00
Tim Hockin ada75e9c6c Build a manifest list
Retool some of the build/test to produce a manifest-list rather than a
single image.
2018-11-09 14:20:23 -08:00
Tim Hockin aafbc9a12b Set $HOME so git can write .gitconfig as non-root 2018-07-03 15:00:11 -07:00
Frank Farzan c9f2e62ed3 Don't set GIT_SYNC_DEST in Dockerfile.
I'm guessing this is an artifact of previous refactorings.
Currently, GIT_SYNC_ROOT defaults to /git and GIT_SYNC_DEST
defaults to leaf dir of repo.
2018-02-05 19:21:13 -08:00
Michael Grosser cb9851e1b5 Revert "Update copyright notice"
This reverts commit b647219b69.
2017-03-22 04:25:39 +00:00
Michael Grosser b647219b69 Update copyright notice 2017-03-22 04:23:08 +00:00
ideahitme b8cc35f4fc clean up Dockerfile, remove ssh-wrapper.sh and set env var 2017-01-26 19:04:24 +01:00
Tim Hockin 70feeb5ae1 Use the go-build-template
Faster builds and versions from tags.  Also use alpine as a base image.  We
need alpine for other architectures...

Also change the --wait flag to take a float for sub-second waits.
2016-10-30 17:09:06 -07:00