Skip to content

Commit 4a7db83

Browse files
committed
fix links later
1 parent 53394c8 commit 4a7db83

26 files changed

+83
-370
lines changed

.github/workflows/cloudapp-azure.yml

-51
This file was deleted.

.github/workflows/cloudapp-build.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CloudApp Build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 'dev'
8+
- 'main'
9+
paths:
10+
- cloudapp/**
11+
tags:
12+
- 'v*'
13+
pull_request:
14+
branches:
15+
- 'dev'
16+
paths:
17+
- cloudapp/**
18+
env:
19+
REGISTRY: ghcr.io
20+
IMAGE_NAME: ${{ github.repository }}/cloudapp
21+
CONTEXT: cloudapp
22+
jobs:
23+
docker:
24+
runs-on: ubuntu-latest
25+
permissions:
26+
contents: read
27+
packages: write
28+
steps:
29+
-
30+
name: Checkout
31+
uses: actions/checkout@v4
32+
-
33+
name: Docker meta
34+
id: meta
35+
uses: docker/metadata-action@v5
36+
with:
37+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
38+
tags: |
39+
type=ref,event=branch
40+
type=ref,event=pr
41+
type=semver,pattern={{version}}
42+
type=semver,pattern={{major}}.{{minor}}
43+
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
44+
-
45+
name: Login to Registry
46+
if: github.event_name != 'pull_request'
47+
uses: docker/login-action@v3
48+
with:
49+
registry: ${{ env.REGISTRY }}
50+
username: ${{ github.actor }}
51+
password: ${{ secrets.GITHUB_TOKEN }}
52+
-
53+
name: Build and push
54+
uses: docker/build-push-action@v5
55+
with:
56+
context: "{{defaultContext}}:${{env.CONTEXT}}"
57+
push: ${{ github.event_name != 'pull_request' }}
58+
tags: ${{ steps.meta.outputs.tags }}
59+
labels: ${{ steps.meta.outputs.labels }}

cloudapp/.dockerignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.git
2+
.gitignore
3+
Dockerfile*
4+
docker-compose*
5+
README.md
6+
LICENSE
7+
SUPPORT.md
8+
.vscode
9+
.github
10+
zappa_settings.json

cloudapp/Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM python:3.10.14-slim
2+
LABEL org.opencontainers.image.description MCN Practical Cloud App
3+
4+
ENV PYTHONUNBUFFERED=1
5+
WORKDIR /app
6+
COPY app .
7+
RUN pip install --no-cache-dir -r requirements.txt
8+
9+
EXPOSE 5000
10+
ENV FLASK_APP app.py
11+
ENV FLASK_RUN_HOST 0.0.0.0
12+
13+
CMD ["flask", "run"]

cloudapp/__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

cloudapp/zappa_settings.json renamed to cloudapp/app/zappa_settings.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
"dateutil",
77
"botocore",
88
"s3transfer",
9-
"concurrent",
10-
"azure",
11-
"azure_function",
12-
"static",
13-
"deploy_reqs.txt"
9+
"concurrent"
1410
],
1511
"profile_name": "default",
1612
"project_name": "cloudapp",

cloudapp/azure/.funcignore

-8
This file was deleted.

cloudapp/azure/.gitignore

-135
This file was deleted.

cloudapp/azure/MCN-Practical-Azure/__init__.py

-24
This file was deleted.

cloudapp/azure/MCN-Practical-Azure/function.json

-20
This file was deleted.

cloudapp/azure/MCN-Practical-Azure/sample.dat

-3
This file was deleted.

cloudapp/azure/__init__.py

-8
This file was deleted.

cloudapp/azure/function.json

-24
This file was deleted.

0 commit comments

Comments
 (0)