๐ ๏ธ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python Alpine is a lightweighted version of Python | |
FROM python:3.8-alpine | |
# Installing dependencies | |
COPY ./requirements.txt ./requirements.txt | |
RUN pip install -r /requirements.txt | |
# Copying the source code to | |
RUN mkdir /app | |
WORKDIR /app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: python | |
sudo: true | |
python: | |
- "3.8" | |
services: | |
- docker | |
before_script: | |
- pip install docker-compose |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
scrape_interval: 10s | |
evaluation_interval: 10s | |
external_labels: | |
monitor: 'codelab-monitor' | |
scrape_configs: | |
- job_name: 'temperature' | |
scrape_interval: 5s | |
static_configs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM grafana/grafana | |
EXPOSE 3000 | |
ENTRYPOINT [ "/run.sh" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: | |
push: {} | |
pull_request: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: |

OlderNewer