1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-25 06:17:50 +00:00
catalog/task/s2i/0.1/Dockerfile
PuneetPunamiya 4cac558aad Modifies s2i task according to the new reorg proposal
Changes include:
  - adds version label
  - adds a minimum pipeline versions supported by the task
  - adds tags for task
  - modified description to add a summary

This patch also moves the s2i files to the task directory
and modifies the path for install task command in readme file

Issue: #386

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2020-07-10 22:06:57 +01:00

14 lines
674 B
Docker

FROM centos:7
# Install security updates
RUN yum -y update && yum clean all && rm -rf /var/cache/yum
# Get latest S2I release from github with some curl+rest+python magic (which is provided by default
# in the image so wedon't have to install extra packages)
RUN mkdir -p /usr/local/bin && \
curl -L $(curl -L -s "https://api.github.com/repos/openshift/source-to-image/releases/latest"| python -c "import sys, json;x=json.load(sys.stdin);print([ r['browser_download_url'] for r in x['assets'] if 'linux-amd64' in r['name']][0])") -o /tmp/s2i.tgz && \
tar xz -f/tmp/s2i.tgz -C /usr/local/bin/ && \
chmod -R 0755 /usr/local/bin
ENTRYPOINT ["/usr/local/bin/s2i"]