adding Docker
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
*.swp
 | 
			
		||||
*.orig
 | 
			
		||||
*.DS_Store
 | 
			
		||||
							
								
								
									
										20
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
FROM centos:7
 | 
			
		||||
 | 
			
		||||
MAINTAINER RightBrain Networks "ops+docker@rightbrainnetworks.com"
 | 
			
		||||
 | 
			
		||||
RUN yum update -y && yum install -y epel-release
 | 
			
		||||
 | 
			
		||||
RUN yum install -y git
 | 
			
		||||
 | 
			
		||||
RUN yum install -y python-pip
 | 
			
		||||
RUN pip install --upgrade pip
 | 
			
		||||
 | 
			
		||||
RUN useradd -d /semver semver
 | 
			
		||||
WORKDIR /semver
 | 
			
		||||
 | 
			
		||||
ADD ./ /semver
 | 
			
		||||
RUN chown -R semver:semver /semver && chmod -R ug+x /semver/*
 | 
			
		||||
 | 
			
		||||
RUN pip install -r requirements.txt
 | 
			
		||||
 | 
			
		||||
CMD python get_version.py
 | 
			
		||||
							
								
								
									
										1
									
								
								requirements.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								requirements.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
bumpversion==0.5.3
 | 
			
		||||
		Reference in New Issue
	
	Block a user