https://github.com/kohkimakimoto/buildsh
Several script files make it easy to run commands in an isolated docker container for building, testing and deploying softwares.
https://github.com/kohkimakimoto/buildsh
bash docker
Last synced: 2 months ago
JSON representation
Several script files make it easy to run commands in an isolated docker container for building, testing and deploying softwares.
- Host: GitHub
- URL: https://github.com/kohkimakimoto/buildsh
- Owner: kohkimakimoto
- Created: 2017-03-02T05:24:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T02:15:25.000Z (almost 8 years ago)
- Last Synced: 2025-04-08T01:46:11.204Z (about 1 year ago)
- Topics: bash, docker
- Language: Python
- Homepage:
- Size: 1.28 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Buildsh
Several script files make it easy to run commands in an isolated docker container for building, testing and deploying softwares.
## Requirements
* Docker
## Usage
Try to run `buildsh-default` without any options.
```
$ buildsh-default
```
The `buildsh-default` boots a docker container using the docker image `kohkimakimoto/buildsh:latest`, and starts a bash process with interactive mode. Your current working direcotory is automatically mounted to `/build` directory in the container, and several programming language runtimes (Go, Ruby, PHP, etc...) already be installed in the container.
So you can run your project's tests by the following commands.
```
# php
$ php phpunit
# go
$ go test ./...
# shell script
$ bash ./tests.sh
```
When you exit the shell, the container will be removed automatically.
```
$ exit
```
If you use `buildsh-default` in non interactive mode, you use it with '-c' option with commands executed in the container.
```
$ buildsh-default -c 'php phpunit'
```
## Author
Kohki Makimoto
## License
The MIT License (MIT)