Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
HazenBabcock committed Nov 25, 2016
1 parent f34b468 commit 18cfb5f
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build_all.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env python
#
# (re)-builds all of the docker images.
#

import subprocess

import image_names

for elt in image_names.names:
cmd = ["docker", "build", "-t", elt[0], "./plplot/" + elt[1] + "/."]
subprocess.call(cmd)



13 changes: 13 additions & 0 deletions image_names.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env python
#
# Image names and directories as a list.
#

names = [["plplot/arch-linux", "arch_linux"],
["plplot/centos-latest", "centos_latest"],
["plplot/debian-latest", "debian_latest"],
["plplot/debian-stable", "debian_stable"],
["plplot/fedora-latest", "fedora_latest"],
["plplot/opensuse-tumbleweed", "opensuse_tumbleweed"],
["plplot/ubuntu-latest", "ubuntu_latest"]]

13 changes: 13 additions & 0 deletions push_all.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env python
#
# Push all of the docker images. You need to log in first..
#

import subprocess

import image_names

for elt in image_names.names:
cmd = ["docker", "push", elt[0]]
subprocess.call(cmd)

0 comments on commit 18cfb5f

Please sign in to comment.