Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alain Takoudjou
slapos.package
Commits
234c2491
Commit
234c2491
authored
May 09, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packer: gzip and move images for a repository like folder.
parent
0fb3aa35
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
0 deletions
+75
-0
.gitignore
.gitignore
+1
-0
packer/build.yml
packer/build.yml
+74
-0
No files found.
.gitignore
View file @
234c2491
...
@@ -19,3 +19,4 @@ packer/log
...
@@ -19,3 +19,4 @@ packer/log
packer/output-*
packer/output-*
packer/packer_cache
packer/packer_cache
archive.tar.gz*
archive.tar.gz*
packer/repository
packer/build.yml
View file @
234c2491
...
@@ -33,3 +33,77 @@
...
@@ -33,3 +33,77 @@
-
shell
:
PATH=$PATH:/opt/packer/ packer build centos-7.2.json >> log/centos-7.2.log
-
shell
:
PATH=$PATH:/opt/packer/ packer build centos-7.2.json >> log/centos-7.2.log
args
:
args
:
creates
:
output-centos72
creates
:
output-centos72
-
file
:
path={{ item }} state=directory mode=0755
with_items
:
-
repository
-
repository/centos
-
repository/centos/6
-
repository/centos/7
-
repository/ubuntu/
-
repository/ubuntu/15.04
-
repository/ubuntu/14.04
-
repository/debian
-
repository/debian/7
-
repository/debian/8
-
repository/centos/6/x86_64
-
repository/centos/7/x86_64
-
repository/ubuntu/15.04/amd64
-
repository/ubuntu/14.04/amd64
-
repository/debian/7/amd64
-
repository/debian/8/amd64
-
shell
:
gzip output-debian8/packer-debian8
args
:
creates
:
output-debian8/packer-debian8.gz
ignore_errors
:
True
-
shell
:
gzip output-debian7/packer-debian7
args
:
creates
:
output-debian7/packer-debian7.gz
ignore_errors
:
True
-
shell
:
gzip output-ubuntu-14-04-server/packer-ubuntu-14-04-server
args
:
creates
:
output-ubuntu-14-04-server/packer-ubuntu-14-04-server.gz
ignore_errors
:
True
-
shell
:
gzip output-ubuntu-15-04-server/packer-ubuntu-15-04-server
args
:
creates
:
output-ubuntu-15-04-server/packer-ubuntu-15-04-server.gz
ignore_errors
:
True
-
shell
:
gzip output-centos67/packer-centos67
args
:
creates
:
output-centos67/packer-centos67.gz
ignore_errors
:
True
-
shell
:
gzip output-centos72/packer-centos72
args
:
creates
:
output-centos72/packer-centos72.gz
ignore_errors
:
True
-
shell
:
mv output-debian8/packer-debian8.gz repository/debian/8/amd64/base-image.qcow2.gz
args
:
creates
:
repository/debian/8/amd64/base-image.qcow2.gz
-
shell
:
mv output-debian7/packer-debian7.gz repository/debian/7/amd64/base-image.qcow2.gz
args
:
creates
:
repository/debian/7/amd64/base-image.qcow2.gz
-
shell
:
mv output-ubuntu-14-04-server/packer-ubuntu-14-04-server.gz repository/ubuntu/14.04/amd64/base-image.qcow2.gz
args
:
creates
:
repository/ubuntu/14.04/amd64/base-image.qcow2.gz
-
shell
:
mv output-ubuntu-15-04-server/packer-ubuntu-15-04-server.gz repository/ubuntu/15.04/amd64/base-image.qcow2.gz
args
:
creates
:
repository/ubuntu/15.04/amd64/base-image.qcow2.gz
-
shell
:
mv output-centos67/packer-centos67.gz repository/centos/6/x86_64/base-image.qcow2.gz
args
:
creates
:
repository/centos/6/x86_64/base-image.qcow2.gz
-
shell
:
mv output-centos72/packer-centos72.gz repository/centos/7/x86_64/base-image.qcow2.gz
args
:
creates
:
repository/centos/7/x86_64/base-image.qcow2.gz
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment