diff options
author | jupierce <jupierce@redhat.com> | 2017-05-08 10:26:09 -0400 |
---|---|---|
committer | jupierce <jupierce@redhat.com> | 2017-05-08 10:26:09 -0400 |
commit | fbadeb45ce30d1726cc8881c7bd0264416819265 (patch) | |
tree | 974983e745f3cebb9542e0330f49a949b00a5985 /system-container/root | |
parent | b3f9e9ff4b8a7c69ec588ac9c5d0e9a8aa852f0a (diff) | |
download | openshift-fbadeb45ce30d1726cc8881c7bd0264416819265.tar.gz openshift-fbadeb45ce30d1726cc8881c7bd0264416819265.tar.bz2 openshift-fbadeb45ce30d1726cc8881c7bd0264416819265.tar.xz openshift-fbadeb45ce30d1726cc8881c7bd0264416819265.zip |
Moving Dockerfile content to images dir
Diffstat (limited to 'system-container/root')
-rw-r--r-- | system-container/root/exports/config.json.template | 223 | ||||
-rw-r--r-- | system-container/root/exports/manifest.json | 11 | ||||
-rw-r--r-- | system-container/root/exports/service.template | 6 | ||||
-rw-r--r-- | system-container/root/exports/tmpfiles.template | 2 | ||||
-rwxr-xr-x | system-container/root/usr/local/bin/run-system-container.sh | 4 |
5 files changed, 0 insertions, 246 deletions
diff --git a/system-container/root/exports/config.json.template b/system-container/root/exports/config.json.template deleted file mode 100644 index 383e3696e..000000000 --- a/system-container/root/exports/config.json.template +++ /dev/null @@ -1,223 +0,0 @@ -{ - "ociVersion": "1.0.0", - "platform": { - "os": "linux", - "arch": "amd64" - }, - "process": { - "terminal": false, - "consoleSize": { - "height": 0, - "width": 0 - }, - "user": { - "uid": 0, - "gid": 0 - }, - "args": [ - "/usr/local/bin/run-system-container.sh" - ], - "env": [ - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", - "TERM=xterm", - "OPTS=$OPTS", - "PLAYBOOK_FILE=$PLAYBOOK_FILE" - ], - "cwd": "/opt/app-root/src/", - "rlimits": [ - { - "type": "RLIMIT_NOFILE", - "hard": 1024, - "soft": 1024 - } - ], - "noNewPrivileges": true - }, - "root": { - "path": "rootfs", - "readonly": true - }, - "mounts": [ - { - "destination": "/proc", - "type": "proc", - "source": "proc" - }, - { - "destination": "/dev", - "type": "tmpfs", - "source": "tmpfs", - "options": [ - "nosuid", - "strictatime", - "mode=755", - "size=65536k" - ] - }, - { - "destination": "/dev/pts", - "type": "devpts", - "source": "devpts", - "options": [ - "nosuid", - "noexec", - "newinstance", - "ptmxmode=0666", - "mode=0620", - "gid=5" - ] - }, - { - "destination": "/dev/shm", - "type": "tmpfs", - "source": "shm", - "options": [ - "nosuid", - "noexec", - "nodev", - "mode=1777", - "size=65536k" - ] - }, - { - "destination": "/dev/mqueue", - "type": "mqueue", - "source": "mqueue", - "options": [ - "nosuid", - "noexec", - "nodev" - ] - }, - { - "destination": "/sys", - "type": "sysfs", - "source": "sysfs", - "options": [ - "nosuid", - "noexec", - "nodev", - "ro" - ] - }, - { - "type": "bind", - "source": "$SSH_ROOT", - "destination": "/opt/app-root/src/.ssh", - "options": [ - "bind", - "rw", - "mode=755" - ] - }, - { - "type": "bind", - "source": "$SSH_ROOT", - "destination": "/root/.ssh", - "options": [ - "bind", - "rw", - "mode=755" - ] - }, - { - "type": "bind", - "source": "$VAR_LIB_OPENSHIFT_INSTALLER", - "destination": "/var/lib/openshift-installer", - "options": [ - "bind", - "rw", - "mode=755" - ] - }, - { - "type": "bind", - "source": "$VAR_LOG_OPENSHIFT_LOG", - "destination": "/var/log/ansible.log", - "options": [ - "bind", - "rw", - "mode=755" - ] - }, - { - "destination": "/root/.ansible", - "type": "tmpfs", - "source": "tmpfs", - "options": [ - "nosuid", - "strictatime", - "mode=755" - ] - }, - { - "destination": "/tmp", - "type": "tmpfs", - "source": "tmpfs", - "options": [ - "nosuid", - "strictatime", - "mode=755" - ] - }, - { - "type": "bind", - "source": "$INVENTORY_FILE", - "destination": "/etc/ansible/hosts", - "options": [ - "bind", - "rw", - "mode=755" - ] - }, - { - "destination": "/sys/fs/cgroup", - "type": "cgroup", - "source": "cgroup", - "options": [ - "nosuid", - "noexec", - "nodev", - "relatime", - "ro" - ] - } - ], - "hooks": { - - }, - "linux": { - "resources": { - "devices": [ - { - "allow": false, - "access": "rwm" - } - ] - }, - "namespaces": [ - { - "type": "pid" - }, - { - "type": "mount" - } - ], - "maskedPaths": [ - "/proc/kcore", - "/proc/latency_stats", - "/proc/timer_list", - "/proc/timer_stats", - "/proc/sched_debug", - "/sys/firmware" - ], - "readonlyPaths": [ - "/proc/asound", - "/proc/bus", - "/proc/fs", - "/proc/irq", - "/proc/sys", - "/proc/sysrq-trigger" - ] - } -} diff --git a/system-container/root/exports/manifest.json b/system-container/root/exports/manifest.json deleted file mode 100644 index 1db845965..000000000 --- a/system-container/root/exports/manifest.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": "1.0", - "defaultValues": { - "OPTS": "", - "VAR_LIB_OPENSHIFT_INSTALLER" : "/var/lib/openshift-installer", - "VAR_LOG_OPENSHIFT_LOG": "/var/log/ansible.log", - "PLAYBOOK_FILE": "/usr/share/ansible/openshift-ansible/playbooks/byo/config.yml", - "SSH_ROOT": "/root/.ssh", - "INVENTORY_FILE": "/dev/null" - } -} diff --git a/system-container/root/exports/service.template b/system-container/root/exports/service.template deleted file mode 100644 index bf5316af6..000000000 --- a/system-container/root/exports/service.template +++ /dev/null @@ -1,6 +0,0 @@ -[Service] -ExecStart=$EXEC_START -ExecStop=-$EXEC_STOP -Restart=no -WorkingDirectory=$DESTDIR -Type=oneshot diff --git a/system-container/root/exports/tmpfiles.template b/system-container/root/exports/tmpfiles.template deleted file mode 100644 index b1f6caf47..000000000 --- a/system-container/root/exports/tmpfiles.template +++ /dev/null @@ -1,2 +0,0 @@ -d $VAR_LIB_OPENSHIFT_INSTALLER - - - - - -f $VAR_LOG_OPENSHIFT_LOG - - - - - diff --git a/system-container/root/usr/local/bin/run-system-container.sh b/system-container/root/usr/local/bin/run-system-container.sh deleted file mode 100755 index 9ce7c7328..000000000 --- a/system-container/root/usr/local/bin/run-system-container.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -export ANSIBLE_LOG_PATH=/var/log/ansible.log -exec ansible-playbook -i /etc/ansible/hosts ${OPTS} ${PLAYBOOK_FILE} |