File tree 3 files changed +88
-0
lines changed
3 files changed +88
-0
lines changed Original file line number Diff line number Diff line change
1
+ .env
2
+ .git
3
+ data
Original file line number Diff line number Diff line change
1
+ FROM ubuntu
2
+
3
+ RUN apt-get update
4
+
5
+ # curl, jq, sqlite-utils
6
+ RUN apt-get -y install curl jq python3 pip
7
+ RUN pip install sqlite-utils
8
+
9
+ # Taskfile
10
+ RUN curl -L https://taskfile.dev/install.sh | sh
11
+
12
+ # Sourcegraph CLI
13
+ RUN curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/local/bin/src && \
14
+ chmod +x /usr/local/bin/src
15
+
16
+ # nsq
17
+ RUN curl -L https://s3.amazonaws.com/bitly-downloads/nsq/nsq-1.2.1.linux-amd64.go1.16.6.tar.gz \
18
+ -o nsq.tar.gz && \
19
+ tar -zxf nsq.tar.gz -C /usr/local --strip-components=1 && \
20
+ rm nsq.tar.gz
21
+
22
+ WORKDIR /app
23
+ VOLUME /app/data
24
+ COPY Taskfile.yaml .
25
+
26
+ ENTRYPOINT ["task" ]
27
+ CMD ["-l" ]
Original file line number Diff line number Diff line change
1
+ services :
2
+ nsqd :
3
+ image : nsqio/nsq
4
+ command : /nsqd -data-path /data -broadcast-address=nsqd -mem-queue-size 0
5
+ ports :
6
+ - " 4150"
7
+ - " 4151"
8
+ volumes :
9
+ - nsqd-data:/data
10
+
11
+ nsqadmin :
12
+ image : nsqio/nsq
13
+ command : /nsqadmin -nsqd-http-address=nsqd:4151
14
+ depends_on :
15
+ - nsqd
16
+ ports :
17
+ - " 4171:4171"
18
+
19
+ # Note: This container expects that the SRC_ACCESS_TOKEN environment variable is set. Check your
20
+ # .env file.
21
+ sourcegraph :
22
+ build : .
23
+ command : src:query meta-db github:collect:enqueue
24
+ env_file : ["./.env"]
25
+ volumes :
26
+ - ./data:/app/data
27
+ - ./npm:/app/npm
28
+ depends_on :
29
+ - nsqd
30
+
31
+ benthos :
32
+ image : jeffail/benthos
33
+ working_dir : /app
34
+ command :
35
+ - " -c"
36
+ - " /app/config/config.yml"
37
+ - " -r"
38
+ - " /app/config/resources.yml"
39
+ - " streams"
40
+ - " /app/streams/github.yml"
41
+ volumes :
42
+ - ./benthos:/app
43
+ - type : bind
44
+ source : ./data
45
+ target : /app/data
46
+ depends_on :
47
+ - nsqd
48
+
49
+ save-package-json :
50
+ build : .
51
+ command : github:collect:to-disk
52
+ volumes :
53
+ - ./data:/app/data
54
+ depends_on :
55
+ - nsqd
56
+
57
+ volumes :
58
+ nsqd-data :
You can’t perform that action at this time.
0 commit comments