Skip to content

Commit 5912735

Browse files
authored
Merge pull request #30 from dsrhub/zz/use-functions
Update mock dockerfile
2 parents 076b3c5 + 310fb7d commit 5912735

File tree

10 files changed

+16
-800
lines changed

10 files changed

+16
-800
lines changed

Dockerfile

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,30 @@
1-
# ARG UTASK_IMAGE=ovhcom/utask:v1.8.3
2-
# TODO: upgrade to ovhcom/utask:v1.8.3 when it's ready
3-
ARG UTASK_IMAGE=zhouzhuojie/utask:beta-with-middleware
1+
ARG UTASK_IMAGE=ovhcom/utask:v1.8.3
42

53

4+
FROM fufuhu/sql-migrate AS sql-migrate
65

76

8-
FROM fufuhu/sql-migrate AS sql-migrate
97
FROM ${UTASK_IMAGE} AS builder
108
WORKDIR /go/src/github.com/ovh/utask
119
COPY init init
1210
COPY plugins plugins
13-
COPY pkg /go/src/github.com/dsrhub/dsrhub/pkg
11+
COPY functions functions
1412
RUN make
1513

1614

17-
18-
1915
FROM frolvlad/alpine-glibc:alpine-3.10
2016
RUN apk add --no-cache curl bash
2117
ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /wait-for-it.sh
2218
RUN chmod +x /wait-for-it.sh
23-
COPY --from=sql-migrate /bin/sql-migrate /usr/local/bin/sql-migrate
24-
COPY --from=builder /go/src/github.com/ovh/utask/plugins /app/plugins
25-
COPY --from=builder /go/src/github.com/ovh/utask/init /app/init
26-
COPY --from=builder /go/src/github.com/ovh/utask/utask /app/utask
27-
COPY --from=builder /go/src/github.com/ovh/utask/sql /app/sql
28-
COPY --from=builder /app/static /app/static
29-
COPY ./templates /app/templates
30-
COPY ./dbconfig.yml /app/dbconfig.yml
19+
COPY --from=sql-migrate /bin/sql-migrate /usr/local/bin/sql-migrate
20+
COPY --from=builder /go/src/github.com/ovh/utask/plugins /app/plugins
21+
COPY --from=builder /go/src/github.com/ovh/utask/init /app/init
22+
COPY --from=builder /go/src/github.com/ovh/utask/utask /app/utask
23+
COPY --from=builder /go/src/github.com/ovh/utask/sql /app/sql
24+
COPY --from=builder /go/src/github.com/ovh/utask/functions /app/functions
25+
COPY --from=builder /app/static /app/static
26+
COPY ./templates /app/templates
27+
COPY ./dbconfig.yml /app/dbconfig.yml
3128
RUN chmod +x /app/utask
3229
EXPOSE 8081
3330
WORKDIR /app

docker-compose.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,9 @@ services:
4141
POSTGRES_DB: utask
4242

4343
openmock:
44-
build: ./mocks
44+
image: dsrhub/mock
4545
container_name: dsrhub_openmock
4646
restart: on-failure
47-
environment:
48-
OPENMOCK_TEMPLATES_DIR: '/data/templates'
49-
OPENMOCK_GRPC_ENABLED: 'true'
50-
OPENMOCK_GRPC_PORT: '50051'
5147
volumes:
5248
- "./mocks/openmock_templates:/data/templates"
5349
ports:
File renamed without changes.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/loopfz/gadgeto v0.10.1
1313
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
1414
github.com/opentracing/opentracing-go v1.2.0 // indirect
15-
github.com/ovh/utask v1.8.3-0.20200724093550-a596736e7b3c
15+
github.com/ovh/utask v1.8.3
1616
github.com/philhofer/fwd v1.0.0 // indirect
1717
github.com/sirupsen/logrus v1.6.0
1818
github.com/stretchr/testify v1.5.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ github.com/ovh/go-ovh v0.0.0-20181109152953-ba5adb4cf014/go.mod h1:joRatxRJaZBsY
244244
github.com/ovh/symmecrypt v0.4.3 h1:kuoiMNrcqYn2Rdn4w86KfW0fpZLSZBRUKTJT40EAyhk=
245245
github.com/ovh/symmecrypt v0.4.3/go.mod h1:39tehz0mgJfrpQOGUMf5J29rK1GzPiTxLFiVuk9XPO0=
246246
github.com/ovh/tat v5.2.5+incompatible/go.mod h1:eRL842a3T+2ept8tEg5IxitkGJL6X8wh1JkRa9DNzo0=
247-
github.com/ovh/utask v1.8.3-0.20200724093550-a596736e7b3c h1:xdbQcYAgTttwCJtK+Ak+WoI1rix7e8GRjVnMhM200Fg=
248-
github.com/ovh/utask v1.8.3-0.20200724093550-a596736e7b3c/go.mod h1:FCwrg391A4STNSOOhAaTSOA0Zaos7Iaw/aU02F76L0U=
247+
github.com/ovh/utask v1.8.3 h1:C0i/gW5xt03Ixyl+UKxwKvSCdV7JkhW0nDgRF7yo938=
248+
github.com/ovh/utask v1.8.3/go.mod h1:FCwrg391A4STNSOOhAaTSOA0Zaos7Iaw/aU02F76L0U=
249249
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
250250
github.com/pelletier/go-toml v1.4.0 h1:u3Z1r+oOXJIkxqw34zVhyPgjBsm6X2wn21NWs/HfSeg=
251251
github.com/pelletier/go-toml v1.4.0/go.mod h1:PN7xzY2wHTK0K9p34ErDQMlFxa51Fk0OUruD3k1mMwo=

mocks/Dockerfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

mocks/go.mod

Lines changed: 0 additions & 11 deletions
This file was deleted.

mocks/go.sum

Lines changed: 0 additions & 684 deletions
This file was deleted.

mocks/main.go

Lines changed: 0 additions & 66 deletions
This file was deleted.

templates/dsrhub_http_create_dsr_request.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,3 @@ steps:
9292
then:
9393
this: TO_RETRY
9494
message: 'service is waiting for callback from remote dsrhub service'
95-
96-
done:
97-
description: notify dsrhub that the dsrhub request is done
98-
dependencies: ["callback"]
99-
action:
100-
type: echo
101-
configuration:
102-
output:
103-
done: done

0 commit comments

Comments
 (0)