Hongli Lai (Phusion)
0302713554
Update documentation
2014-06-20 11:33:10 +02:00
Hongli Lai
7ac6795aa5
Merge pull request #84 from imanel/patch-1
...
Preserve ENV variables for SSH client
2014-06-20 11:28:27 +02:00
Hongli Lai
feab2fce75
Merge pull request #94 from pda/stderr-not-proctitle
...
my_init: runsvdir no longer redirects stderr to proctitle.
2014-06-20 11:26:39 +02:00
Paul Annesley
3019bbf09b
my_init: runsvdir no longer redirects stderr to proctitle.
...
As described at http://smarden.org/runit/runsvdir.8.html passing a log
option to runsvdir causes stderr to be redirected to the proctitle.
That prevents stderr from reaching docker logs, which is a big problem.
2014-06-18 09:38:52 -07:00
Bernard Potocki
18a7fe26ec
Add USER, GROUP, UID, GID and SHELL to restricted env variables
2014-06-18 17:29:02 +02:00
Bernard Potocki
b9d788611a
Update readme
2014-06-18 17:13:44 +02:00
Bernard Potocki
1357e9399e
Add docker_env group and make container_environment scripts group-readable
2014-06-18 17:10:35 +02:00
Hongli Lai (Phusion)
ba1e1ffbf5
Fix an anchor in the README
2014-06-17 17:41:20 +02:00
Hongli Lai (Phusion)
0b468fb61b
Introduce the docker-bash tool.
...
This is a shortcut tool for logging into a container using SSH. Usage: `docker-bash <CONTAINER_ID>`.
2014-06-17 17:40:34 +02:00
Hongli Lai
9db4f43b74
Merge pull request #93 from qerub/ipaddress
...
Use Go template instead of grep to extract container IP address
2014-06-17 14:40:05 +02:00
Hongli Lai (Phusion)
5806f51ea3
Fixed various process waiting issues in my_init.
...
Closes GH-27. Closes GH-82. Closes GH-83.
Thanks to André Luiz dos Santos and Paul Annesley.
2014-06-17 14:35:05 +02:00
Hongli Lai (Phusion)
c431f2d151
Update Changelog
2014-06-17 13:27:03 +02:00
Hongli Lai
76100b639a
Merge pull request #88 from jeckhart/fix-syslogng-runit-run
...
Missing target of chown in syslog-ng runit run file
2014-06-17 13:15:20 +02:00
Hongli Lai
ecf6e6b226
Merge pull request #90 from yebyen/patch-1
...
needed for insecure key usage
2014-06-17 13:03:48 +02:00
Hongli Lai (Phusion)
92c2ea22ed
Install add-apt-repository.
...
Closes GH-74.
2014-06-17 12:46:14 +02:00
Hongli Lai (Phusion)
436be20ff0
Bump version to 0.9.11
2014-06-17 12:45:24 +02:00
Christoffer Sawicki
f445cafe03
Use Go template instead of grep to extract container IP address
2014-06-16 14:20:46 +02:00
Hongli Lai
93572a5698
Update CONTRIBUTING.md
...
Fix link
2014-06-16 12:41:42 +02:00
Hongli Lai
f5efca365c
Create CONTRIBUTING.md
2014-06-16 12:41:13 +02:00
yebyen
949bd1d89f
needed for insecure key usage
...
`chmod 600` is for the benefit of ssh client, which will otherwise spew:
```
chmod 600 image/insecure_key.pub
SSHing into 172.17.0.2
Warning: Permanently added '172.17.0.2' (ECDSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0664 for 'image/insecure_key' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: image/insecure_key
```
As you can see though, the wrong file is `chmod`'ed -- it's the private key that SSH will insist should be protected with a more restrictive mode.
After this, `CMD ["/sbin/my_init", "--enable-insecure-key"]` works as expected.
2014-06-09 12:32:52 -04:00
John Eckhart
2b339a3344
Missing target of chown
2014-06-04 02:10:00 -04:00
Bernard Potocki
b665b78454
Make container_envoriments.sh and .json readable by other users
...
Prevents bug when loading env variables on non-root user login.
2014-06-02 15:06:02 +02:00
Bernard Potocki
5b403fe06c
Don't write HOME env variable
...
Loading HOME variable breaks multi-user container (i.e. logging as postgres user) if you try to load variables via `/etc/container_environment.sh`.
2014-06-02 15:03:49 +02:00
Bernard Potocki
1a6c43b8d7
Preserve ENV variables for SSH client
...
Currently when you ssh to host you will not see ENV variables set. This was mentioned earlier in #54 and solution is tested.
Additional rationale: currently you can't see docker link ENV variables inside ssh, so you need to load this file every time you connect to container. I would say that expected behavior is to preserve them in services that are provided at default (cron/ssh)
2014-06-02 00:11:24 +02:00
Hongli Lai
0325abf74e
Changelog.md now explicitly mentions that the latest version is not yet released
2014-05-16 14:17:15 +02:00
Hongli Lai (Phusion)
22c3d60d94
Install ca-certificates package by default.
...
This is because we include `apt-transport-https`, but Ubuntu 14.04 no longer
installs `ca-certificates` by default anymore. Closes GH-73.
2014-05-12 23:07:17 +02:00
Hongli Lai (Phusion)
b56693beb3
Fix syslog-ng.
...
The system() source in the default syslog-ng config file does
not work in Docker because it tries to access /proc/kmsg,
which is not allowed due to Docker's privileges. We replace
it by a source that only reads from /dev/log.
2014-05-12 17:29:45 +02:00
Hongli Lai (Phusion)
612b1504af
The syslog-ng script should restore /dev/xconsole permissions because that's what the official init script does
2014-05-12 16:43:55 +02:00
Hongli Lai (Phusion)
7bde5d9993
Document release date of 0.9.10
2014-05-12 16:15:59 +02:00
Hongli Lai (Phusion)
af11b5e7b4
Early in the my_init initialization process, do not overwrite already-defined environment variables by the ones in /etc/container_environment.
...
Closes GH-52.
2014-05-12 16:14:47 +02:00
Hongli Lai (Phusion)
29d315891f
Use Ubuntu 14.04 as Vagrant box
2014-05-12 16:14:44 +02:00
Hongli Lai (Phusion)
5e0b1b6267
Update URLs to Vagrant boxes
2014-05-12 13:56:40 +02:00
Hongli Lai (Phusion)
e0d3f5d1a4
Bump version to 0.9.10
2014-05-12 10:32:34 +02:00
Hongli Lai (Phusion)
03adf9b696
Document the new environment variable newline handling in my_init
2014-05-12 10:32:18 +02:00
Hongli Lai (Phusion)
51748c3b1d
Update the README to say that we're on Ubuntu 14.04 now.
2014-05-12 10:24:52 +02:00
Hongli Lai (Phusion)
895b145207
Update Changelog
2014-05-12 10:24:02 +02:00
mpeterson
d3d4b6124a
modified setuser to use Python3 (default on 14.04)
2014-05-12 10:21:54 +02:00
mpeterson
5cfdd42d4b
Modify defaults for syslog_ng to function properly
...
On 14.04 (trusty) there is nos no need to list all the modules since that was fixed.
No only that, listing them causes an error and it doesn't start.
2014-05-12 10:21:54 +02:00
Kingdon Barrett
6acfd8794d
Remove /dev/log if it's a file a file.
...
Fixes https://github.com/phusion/baseimage-docker/pull/25
2014-05-12 10:21:36 +02:00
Santiago M. Mola
90ff4682df
Migrate to Python 3
...
Ubuntu Trusty ships Python 3 by default, but not Python 2. Older versions already ship Python 3, so this change should be safe.
2014-05-10 12:28:23 +00:00
Paul Jimenez
17f000b744
Upgrade from Precise to Trusty
...
Conflicts:
image/sources.list
2014-05-10 12:26:34 +00:00
mpeterson
90262a0460
Better way to enable universe and multiverse
...
Instead of copying over a hardcoded file we just uncomment the correct lines via two simple sed commands.
Conflicts:
image/sources.list
2014-05-10 12:24:41 +00:00
Hongli Lai
9f369b5ed7
Merge pull request #51 from nanobeep/patch-1
...
Use '--rm' instead of '-rm', which was deprecated in Docker 0.9
2014-04-21 16:43:35 +02:00
Matt Jaynes
2ba32b6172
Use '--rm' instead of '-rm', which was deprecated in Docker 0.9
2014-04-08 15:36:36 -06:00
Hongli Lai
c740ff2f4d
Merge pull request #49 from harto/trim-env-newlines
...
Trim trailing newlines from file-based envs
2014-04-02 16:47:09 +02:00
Stuart Campbell
5e2ee3838d
Trim trailing newlines from file-based envs
...
Many editors add a trailing newline to files. This can result in
slightly unexpected values for environment variables read from
/etc/container_environment.
2014-04-03 00:13:09 +11:00
Hongli Lai (Phusion)
8f9eefa1f6
Correctly pass child process' exit status to sys.exit(). Closes GH-45
2014-03-28 10:23:25 +01:00
Hongli Lai (Phusion)
5ae32384d5
Document 0.9.9 release date
2014-03-25 17:18:16 +01:00
Hongli Lai (Phusion)
f55fde8d99
Fix a bug in the build process
2014-03-25 17:06:53 +01:00
Hongli Lai (Phusion)
0632b4865b
Set the INITRD env variable and make 'ischroot' always return true.
...
This prevents initramfs and initscripts updates from breaking.
2014-03-25 16:44:33 +01:00