Skip to content

Commit

Permalink
update doc, build image for multi-platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
gluckzhang committed Jul 13, 2023
1 parent 7ca6f0f commit 0aed524
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/__pycache__
**/*.pyc
**/.DS_Store
4 changes: 2 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v4
with:
platforms: linux/amd64,linux/arm64
push: true
tags: opensourceelectrolux/aws-cost-exporter:${{ github.ref_name }}

tags: opensourceelectrolux/aws-cost-exporter:${{ github.ref_name }}
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ FROM python:3.10.11-alpine
ENV APP_HOME /app
WORKDIR /

COPY ./app *.py package.json requirements.txt /
COPY ./app $APP_HOME
COPY *.py package.json requirements.txt /
RUN pip install -r requirements.txt

ENV PYTHONUNBUFFERED 1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Modify the `exporter_config.yaml` file first, then use one of the following meth
### Docker

```
docker run --rm -v ./exporter_config.yaml:/app/exporter_config.yaml -p 9090:9090 -e AWS_ACCESS_KEY=${AWS_ACCESS_KEY} -e AWS_ACCESS_SECRET=${AWS_ACCESS_SECRET} opensourceelectrolux/finops-aws-cost-exporter:v1.0.0
docker run --rm -v ./exporter_config.yaml:/app/exporter_config.yaml -p 9090:9090 -e AWS_ACCESS_KEY=${AWS_ACCESS_KEY} -e AWS_ACCESS_SECRET=${AWS_ACCESS_SECRET} opensourceelectrolux/aws-cost-exporter:v1.0.0
```

### Kubernetes
Expand Down
2 changes: 1 addition & 1 deletion deployment/k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
spec:
containers:
- name: aws-cost-exporter
image: "opensourceelectrolux/finops-aws-cost-exporter:v1.0.0"
image: "opensourceelectrolux/aws-cost-exporter:v1.0.0"
command: [ "python", "main.py", "-c", "/exporter_config.yaml" ]
imagePullPolicy: Always
env:
Expand Down

0 comments on commit 0aed524

Please sign in to comment.