Add pipeline and created entrypoint.sh for Dockerfile

This commit is contained in:
Josh Knapp 2023-04-07 07:55:36 -07:00
parent d654125492
commit c981bb6a33
3 changed files with 31 additions and 1 deletions

View File

@ -4,4 +4,6 @@ RUN dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noar
RUN dnf update -y && dnf upgrade -y
RUN dnf install -y memcached
RUN yum clean all
ENTRYPOINT [ " /usr/bin/memcached -u memcached -l 0.0.0.0" ]
COPY ./scripts/entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]

View File

@ -0,0 +1,22 @@
---
resources:
- name: cmc
type: git
source:
uri: https://repo.anhonesthost.net/cloud-hosting-platform/cloud-memcached-container.git
branch: trunk
- name: build-cmc-latest
type: docker-image
source:
repository: registry.dnspegasus.net/cmc
tag: latest
jobs:
- name: publish-cmc-latest
plan:
- get: cmc
trigger: true
- put: build-cmc-latest
params:
build: cmc

6
scripts/entrypoint.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
echo "Starting Memcached..."
sleep 5
/usr/bin/memcached -u memcached -l 0.0.0.0
exit 0