Build an ephemeral dev container for rego testing
Create a ephemeral dev container to facilitate testing of populate_inventory. It can be created, tweeked in the admin interface, files updated in admin's populate_inventory, then redeployed to deal with those changes. A branch based one will need to be created to so we can do this work without polluting the master branch.
This commit is contained in:
		
							parent
							
								
									db1f3f9792
								
							
						
					
					
						commit
						c32dbb2a07
					
				
					 3 changed files with 8 additions and 1 deletions
				
			
		|  | @ -4,8 +4,10 @@ build_image: | ||||||
|   - docker:dind |   - docker:dind | ||||||
|   script: |   script: | ||||||
|     - docker build -f docker/Dockerfile -t asia.gcr.io/linuxconfsydney/symposion_app:$CI_COMMIT_SHA . |     - docker build -f docker/Dockerfile -t asia.gcr.io/linuxconfsydney/symposion_app:$CI_COMMIT_SHA . | ||||||
|  |     - docker build --build-arg CI_COMMIT_SHA=$CI_COMMIT_SHA -f docker/Dockerfile.dev -t asia.gcr.io/linuxconfsydney/symposion_app_dev:$CI_COMMIT_SHA . | ||||||
|     - docker login -u _json_key -p "$GOOGLE_KEY" https://asia.gcr.io |     - docker login -u _json_key -p "$GOOGLE_KEY" https://asia.gcr.io | ||||||
|     - docker push asia.gcr.io/linuxconfsydney/symposion_app:$CI_COMMIT_SHA |     - docker push asia.gcr.io/linuxconfsydney/symposion_app:$CI_COMMIT_SHA | ||||||
|  |     - docker push asia.gcr.io/linuxconfsydney/symposion_app_dev:$CI_COMMIT_SHA | ||||||
|     - docker tag asia.gcr.io/linuxconfsydney/symposion_app:$CI_COMMIT_SHA asia.gcr.io/linuxconfsydney/symposion_app:latest |     - docker tag asia.gcr.io/linuxconfsydney/symposion_app:$CI_COMMIT_SHA asia.gcr.io/linuxconfsydney/symposion_app:latest | ||||||
|     - docker push asia.gcr.io/linuxconfsydney/symposion_app:latest |     - docker push asia.gcr.io/linuxconfsydney/symposion_app:latest | ||||||
|   only: |   only: | ||||||
|  |  | ||||||
							
								
								
									
										4
									
								
								docker/Dockerfile.dev
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								docker/Dockerfile.dev
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,4 @@ | ||||||
|  | ARG CI_COMMIT_SHA | ||||||
|  | FROM asia.gcr.io/linuxconfsydney/symposion_app:$CI_COMMIT_SHA | ||||||
|  | 
 | ||||||
|  | CMD ["/app/symposion_app/docker/deploy_with_sqlite.sh"] | ||||||
|  | @ -3,4 +3,5 @@ | ||||||
| /usr/local/bin/python /app/symposion_app/manage.py migrate | /usr/local/bin/python /app/symposion_app/manage.py migrate | ||||||
| /usr/local/bin/python /app/symposion_app/manage.py loaddata /app/symposion_app/fixtures/conference.json /app/symposion_app/fixtures/proposal_base.json /app/symposion_app/fixtures/sites.json /app/symposion_app/fixtures/sitetree.json | /usr/local/bin/python /app/symposion_app/manage.py loaddata /app/symposion_app/fixtures/conference.json /app/symposion_app/fixtures/proposal_base.json /app/symposion_app/fixtures/sites.json /app/symposion_app/fixtures/sitetree.json | ||||||
| /usr/local/bin/python /app/symposion_app/manage.py populate_inventory | /usr/local/bin/python /app/symposion_app/manage.py populate_inventory | ||||||
| exec /usr/local/bin/python /app/symposion_app/manage.py runserver 0.0.0.0:8000 | 
 | ||||||
|  | exec /usr/local/bin/uwsgi --http-socket 0.0.0.0:8000 --wsgi-file pinaxcon/wsgi.py | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Sachi King
						Sachi King