Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R171217009, Anmol Ahuja #5

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions R171217009/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM smithmicro/web2py:alpine

USER root

# Copy my applications to the image
COPY codeheroku $WEB2PY_ROOT/applications/welcome

# Install required Python pacakages, remove sample apps and set proper ownership
RUN chown -R web2py:web2py $WEB2PY_ROOT

USER web2py
1 change: 0 additions & 1 deletion R171217009/Dummy file.txt

This file was deleted.

2 changes: 2 additions & 0 deletions R171217009/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Midsem_Webapp
Web app for System Configuration and Management
50 changes: 50 additions & 0 deletions R171217009/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:

trigger:
- master

pool:
vmImage: 'ubuntu-latest'

steps:
- task: Docker@2
inputs:
containerRegistry: 'Your Container Registry'
repository: 'Your docker repo'
command: 'buildAndPush'
Dockerfile: '**/Dockerfile'
tags: '$(Build.BuildNumber)'

# - task: TerraformInstaller@0
# inputs:
# terraformVersion: 'latest'

- task: TerraformTaskV1@0
inputs:
provider: 'azurerm'
command: 'init'
backendServiceArm: 'Your Subscription Id'
backendAzureRmResourceGroupName: 'resource group name'
backendAzureRmStorageAccountName: 'storage account name'
backendAzureRmContainerName: 'stoarge container name'
backendAzureRmKey: '$(access_key)'

- task: TerraformTaskV1@0
inputs:
provider: 'azurerm'
command: 'plan'
commandOptions: '-var "dockerhub-username=$(dockerhub-username)" -var "imageversion=$(Build.BuildNumber)"'
environmentServiceNameAzureRM: 'Your Subscription Id'

- task: TerraformTaskV1@0
inputs:
provider: 'azurerm'
command: 'apply'
commandOptions: '-var "dockerhub-username=$(dockerhub-username)" -var "imageversion=$(Build.BuildNumber)"'
environmentServiceNameAzureRM: 'Your Subscription Id'




Binary file added R171217009/codeheroku/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions R171217009/codeheroku/ABOUT
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Write something about this app.
Developed with web2py.
4 changes: 4 additions & 0 deletions R171217009/codeheroku/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The web2py welcome app is licensed under public domain
(except for the css and js files that it includes, which have their own third party licenses).

You can modify this license when you add your own code.
1 change: 1 addition & 0 deletions R171217009/codeheroku/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added R171217009/codeheroku/__init__.pyc
Binary file not shown.
Loading