Skip to content

Commit

Permalink
use debian:latest, README updates
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcarls committed May 28, 2022
1 parent 3a5e2b7 commit 7d11e74
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:stretch
FROM debian:latest

EXPOSE 8080 3000

Expand Down Expand Up @@ -44,4 +44,4 @@ COPY .gotty.default /tmp/
COPY ./docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]

CMD ["gotty", "/bin/login"]
CMD ["gotty", "/bin/login"]
25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This Docker image is a full Debian Linux environment running [GoTTY](https://github.com/yudai/gotty), which allows you to access a TTY inside the container from your web browser.

# Usage
## Usage
```bash
docker run -p 8080:8080 richardcarls/remotedev
```
Expand Down Expand Up @@ -35,12 +35,31 @@ By default, gotty runs `/bin/login` and reads default options from a provided `.
You can specify additional packages to install at container start by setting `-e INSTALL_PACKAGES`.

```bash
docker run -v /some/host/directory:/userdata -e INSTALL_PACKAGES="build-essentials emacs-nox nodejs" -p 8080:8080 richardcarls/remotedev
docker run -v /some/host/directory:/userdata -e INSTALL_PACKAGES="emacs-nox nodejs" -p 8080:8080 richardcarls/remotedev
```

### Run a startup script on ontainer start
Provide the path to a startup script to run with `-e STARTUP_EXEC` (relative to $HOME).

```bash
docker run -v /some/host/directory:/userdata -e STARTUP_EXEC="remotedev-startup-polymer.sh" -p 8080:8080 richardcarls/remotedev
docker run -v /some/host/directory:/userdata -e STARTUP_EXEC="your-startup-script.sh" -p 8080:8080 richardcarls/remotedev
```

## Change History

### 2.2.1
- Swtich to using debian:latest

### 2.2.0
- Bump gotty to latest version 1.0.1
- Expose a second port (useful to run a dev server)

### 2.1.0
- Added startup script hok

### 2.0.0
- Added package install hook
- Some default packages

### 1.0.0
Initial release

0 comments on commit 7d11e74

Please sign in to comment.