Skip to content

Commit

Permalink
Merge branch 'release/v0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaskoch committed Feb 2, 2017
2 parents d1aaac2 + e197ffc commit bf4a066
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [v0.2.0]

systemd service improvements (thanks to @hermsi1337)

### Added
- Add an animation illustrating the usage of dcsg

### Changed
- Pull the latest image before starting (see: dcsg/pull/2)
- Stop the containers before removing them (see: dcsg/pull/2)

## [v0.1.1-alpha] - 2016-12-18

Set the working directory for the systemd services
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ If you have one or more docker compose projects running on your server you might

And **dcsg** is here to help you with just that. Quickly create systemd services from docker-compose files.

![Animation: Using dcsg on a docker-compose project](files/animation-dcsg-usage-example.gif)

## Usage

`dcsg <action> [<path-to-a-docker-compose-file>] [<docker-compose-project-name]>`
Expand Down
Binary file added files/animation-dcsg-usage-example.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ After=network.target
[Service]
WorkingDirectory={{ .ProjectDirectory }}
ExecStartPre=/usr/bin/env docker-compose -p "{{ .ProjectName }}" -f "{{ .DockerComposeFile }}" pull
ExecStart=/usr/bin/env docker-compose -p "{{ .ProjectName }}" -f "{{ .DockerComposeFile }}" up
ExecStop=/usr/bin/env docker-compose -p "{{ .ProjectName }}" -f "{{ .DockerComposeFile }}" down
ExecStop=/usr/bin/env docker-compose -p "{{ .ProjectName }}" -f "{{ .DockerComposeFile }}" stop
ExecStopPost=/usr/bin/env docker-compose -p "{{ .ProjectName }}" -f "{{ .DockerComposeFile }}" down
[Install]
WantedBy=network-online.target
Expand Down

0 comments on commit bf4a066

Please sign in to comment.