Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hirokisan/sandbox
Sandbox for apps, easy to try apps
https://github.com/hirokisan/sandbox
Last synced: 9 days ago
JSON representation
Sandbox for apps, easy to try apps
- Host: GitHub
- URL: https://github.com/hirokisan/sandbox
- Owner: hirokisan
- Created: 2018-07-26T12:19:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-04T10:49:25.000Z (over 6 years ago)
- Last Synced: 2024-05-05T15:20:29.628Z (8 months ago)
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Sandbox with docker
====This is sandbox to run apps
Dont think too much, just like a toy
## Build with compose
```
$ docker-compose up -d --build
```## Get into container
```
$ docker exec -it sandbox-workspace_1 bash
```## Stop running
```
$ docker-compose stop
```## IP(Docker for Mac)
```
127.0.0.1
```## ADD HOST
```
$ sudo sh -c "echo 127.0.0.1 sandbox.local >> /etc/hosts"
```## ADD KEYS(Modify $PATH by yourself)
```
$ ssh-keygen -f ~/$PATH/sandbox/workspace/id_rsa
```## ADD SSH CONFIG(Modify $PATH by yourself)
```
$ printf "\
Host sandbox.local
HostName 127.0.0.1
User sandbox
Port 10080
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
LogLevel FATAL
IdentityFile ~/$PATH/sandbox/workspace/id_rsa
" | cat >> ~/.ssh/config
```## Get into container with ssh
```
$ ssh sandbox.local
```## Run this command when you log into container
```
$ bash ~/init.sh
```## Run this command if you want to use dotfiles
```
$ git clone -b sandbox-use https://github.com/hirokisan/dotfiles.git ~/dotfiles
$ bash ~/dotfiles/install.sh
```## Referense
* [docker-compose](https://docs.docker.com/compose/compose-file/)
* [docker-compose-build](https://docs.docker.com/compose/reference/build/)
* [Install Docker for Mac](https://docs.docker.com/docker-for-mac/install/)