File tree 3 files changed +23
-0
lines changed
3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ * .yml
2
+ * .csv
3
+ script /__pycache__ **
Original file line number Diff line number Diff line change
1
+ FROM python:3.9-slim
2
+
3
+ COPY requirements.txt /requirements.txt
4
+
5
+ RUN pip install -r /requirements.txt
6
+
7
+ ADD LICENSE run.py script/* /
8
+
9
+ ENTRYPOINT [ "python3" , "/run.py" ]
Original file line number Diff line number Diff line change
1
+ DOCKER_REPO ?= bushelpowered/grafana-ldap-sync-script
2
+ DOCKER_TAG ?= v1.0
3
+
1
4
init :
2
5
pip install -r requirements.txt
3
6
@@ -15,3 +18,11 @@ bundle:
15
18
16
19
test :
17
20
nosetests tests
21
+
22
+ docker-build :
23
+ docker build -t ${DOCKER_REPO} :latest .
24
+ docker tag ${DOCKER_REPO} :latest ${DOCKER_REPO} :${DOCKER_TAG}
25
+
26
+ docker-push : docker-build
27
+ docker push ${DOCKER_REPO} :latest
28
+ docker push ${DOCKER_REPO} :${DOCKER_TAG}
You can’t perform that action at this time.
0 commit comments