Add pipeline and created entrypoint.sh for Dockerfile
This commit is contained in:
		@@ -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 update -y && dnf upgrade -y
 | 
				
			||||||
RUN dnf install -y memcached
 | 
					RUN dnf install -y memcached
 | 
				
			||||||
RUN yum clean all
 | 
					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" ]
 | 
				
			||||||
							
								
								
									
										22
									
								
								pipeline/automated-build.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								pipeline/automated-build.yml
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										6
									
								
								scripts/entrypoint.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					echo "Starting Memcached..."
 | 
				
			||||||
 | 
					sleep 5
 | 
				
			||||||
 | 
					/usr/bin/memcached -u memcached -l 0.0.0.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					exit 0
 | 
				
			||||||
		Reference in New Issue
	
	Block a user