Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
file version 2 -> 2.1 for cpu_period
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Speckmaier committed Sep 25, 2018
1 parent 2233a7d commit 500aee5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ RUN curl -sSL "https://github.com/rancher/rancher-compose/releases/download/v$RA
&& mv rancher-compose-*/rancher-compose /usr/local/bin/ \
&& cp /usr/local/bin/rancher-compose /usr/local/bin/rancher-compose-$RANCHER_COMPOSE_VERSION

RUN curl -sSL "https://github.com/rancher/rancher-compose/releases/download/v$RANCHER_COMPOSE_VERSION/rancher-compose-linux-amd64-v$RANCHER_COMPOSE_VERSION.tar.gz" \
| tar xz \
&& mv rancher-compose-*/rancher-compose /usr/local/bin/ \
&& cp /usr/local/bin/rancher-compose /usr/local/bin/rancher-compose-$RANCHER_COMPOSE_VERSION

COPY ["docker", "/opt/rancherize"]
COPY [".", "/opt/rancherize-package"]
WORKDIR /opt/rancherize
Expand Down
2 changes: 1 addition & 1 deletion app/Blueprint/Infrastructure/Service/ServiceWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ protected function writeYaml($targetFile, Service $service, FileWriter $fileWrit
try {
$dockerData = Yaml::parse($this->fileLoader->get($targetFile));
if(!is_array($dockerData))
$dockerData = [ 'version' => '2' ];
$dockerData = [ 'version' => '2.1' ];

// handle v2 format
if ( array_key_exists('version', $dockerData) ) {
Expand Down

0 comments on commit 500aee5

Please sign in to comment.