File tree 11 files changed +84
-13
lines changed
11 files changed +84
-13
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ RUN mkdir -p /usr/share/GeoIP/ && \
30
30
31
31
WORKDIR /code
32
32
COPY requirements/ /code/
33
+ COPY app/ /code/app/
33
34
34
35
RUN pip install -r test.txt
35
36
COPY bin/docker-command.bash /bin/docker-command.bash
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ pipeline {
19
19
}
20
20
steps {
21
21
container(' python' ) {
22
- sh " python -m unittest"
23
-
24
22
sh ' export VERSION=$PREVIEW_VERSION && skaffold build -f skaffold.yaml'
25
23
26
24
@@ -55,8 +53,6 @@ pipeline {
55
53
}
56
54
}
57
55
container(' python' ) {
58
- sh " python -m unittest"
59
-
60
56
sh ' export VERSION=`cat VERSION` && skaffold build -f skaffold.yaml'
61
57
62
58
sh " jx step post build --image $DOCKER_REGISTRY /$ORG /$APP_NAME :\$ (cat VERSION)"
Original file line number Diff line number Diff line change 1
1
approvers:
2
2
- gc-jenkins-x
3
+ - mbeacom
4
+ - owocki
5
+ - thelostone-mc
6
+ - SaptakS
3
7
reviewers:
4
8
- gc-jenkins-x
9
+ - mbeacom
10
+ - owocki
11
+ - thelostone-mc
12
+ - SaptakS
Original file line number Diff line number Diff line change 1
1
aliases:
2
2
- gc-jenkins-x
3
+ - mbeacom
4
+ - owocki
5
+ - thelostone-mc
6
+ - SaptakS
3
7
best-approvers:
4
8
- gc-jenkins-x
9
+ - mbeacom
10
+ - owocki
11
+ - thelostone-mc
12
+ - SaptakS
5
13
best-reviewers:
6
14
- gc-jenkins-x
15
+ - mbeacom
16
+ - owocki
17
+ - thelostone-mc
18
+ - SaptakS
Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ dependencies:
8
8
name : exposecontroller
9
9
repository : https://chartmuseum.build.cd.jenkins-x.io
10
10
version : 2.3.56
11
+ - name : redis
12
+ alias : redis
13
+ version : ~4.1.2
14
+ repository : https://kubernetes-charts.storage.googleapis.com
15
+ - name : postgresql
16
+ alias : db
17
+ version : ~0.19.0
18
+ repository : https://kubernetes-charts.storage.googleapis.com
11
19
- alias : preview
12
20
name : web
13
21
repository : file://../web
Original file line number Diff line number Diff line change @@ -19,4 +19,14 @@ preview:
19
19
image :
20
20
repository :
21
21
tag :
22
- pullPolicy : IfNotPresent
22
+ pullPolicy : IfNotPresent
23
+
24
+ terminationGracePeriodSeconds : 30
25
+ redis :
26
+ cluster.enabled : false
27
+ usePassword : false
28
+ db :
29
+ postgresUser : postgres
30
+ postgresPassword : gitcoin
31
+ postgresDatabase : postgres
32
+ imageTag : " 9.6"
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : ConfigMap
3
+ metadata :
4
+ name : web-config
5
+ data :
6
+ .env : |-
7
+ CACHE_URL=dbcache://my_cache_table
8
+ REDIS_URL=rediscache://{{ .Release.Name }}-master:6379/0?client_class=django_redis.client.DefaultClient
9
+ CACHEOPS_REDIS=redis://{{ .Release.Name }}-master:6379/0
10
+ COLLECTFAST_CACHE_URL=dbcache://collectfast
11
+ DATABASE_HOST={{ .Release.Name }}-db
12
+ DEBUG=on
13
+ FORCE_GET_PRICES=on
14
+ DATABASE_USER=postgres
15
+ DATABASE_NAME=postgres
16
+ DATABASE_PASSWORD=gitcoin
17
+ DATABASE_URL=psql://postgres:gitcoin@{{ .Release.Name }}-db:5432/postgres
Original file line number Diff line number Diff line change 25
25
- containerPort : {{ .Values.service.internalPort }}
26
26
resources :
27
27
{{ toYaml .Values.resources | indent 12 }}
28
+ volumeMounts :
29
+ - name : config-volume
30
+ mountPath : /code/app/app/.env
31
+ subPath : .env
32
+ volumes :
33
+ - name : config-volume
34
+ configMap :
35
+ name : web-config
36
+ terminationGracePeriodSeconds : {{ .Values.terminationGracePeriodSeconds }}
Original file line number Diff line number Diff line change @@ -10,16 +10,26 @@ service:
10
10
name : web
11
11
type : ClusterIP
12
12
externalPort : 80
13
- internalPort : 8080
13
+ internalPort : 8000
14
14
annotations :
15
15
fabric8.io/expose : " true"
16
16
fabric8.io/ingress.annotations : " kubernetes.io/ingress.class: nginx"
17
17
resources :
18
18
limits :
19
- cpu : 100m
20
- memory : 128Mi
19
+ cpu : 1000m
20
+ memory : 1024Mi
21
21
requests :
22
- cpu : 100m
23
- memory : 128Mi
22
+ cpu : 200m
23
+ memory : 512Mi
24
24
ingress :
25
- enabled : false
25
+ enabled : true
26
+ basedomain : " jx.ci.gitcoin.co"
27
+ terminationGracePeriodSeconds : 30
28
+ redis :
29
+ cluster.enabled : false
30
+ usePassword : false
31
+ db :
32
+ postgresUser : postgres
33
+ postgresPassword : gitcoin
34
+ postgresDatabase : postgres
35
+ imageTag : " 9.6"
Original file line number Diff line number Diff line change 3
3
BUILD_DIR=$1
4
4
5
5
# Exit early if app is clearly not Python.
6
- if [ ! -f $BUILD_DIR /requirements.txt ] && [ ! -f $BUILD_DIR /setup.py ] && [ ! -f $BUILD_DIR /Pipfile ]; then
6
+ if [ ! -f $BUILD_DIR /requirements/test .txt ] && [ ! -f $BUILD_DIR /setup.py ] && [ ! -f $BUILD_DIR /Pipfile ]; then
7
7
exit 1
8
8
fi
9
9
Original file line number Diff line number Diff line change 5
5
envTemplate :
6
6
template : " {{.DOCKER_REGISTRY}}/gitcoinco/web:{{.VERSION}}"
7
7
artifacts :
8
- - imageName : changeme
8
+ - imageName : gitcoin-web
9
9
workspace : .
10
10
docker : {}
11
11
local : {}
You can’t perform that action at this time.
0 commit comments