Skip to content

Commit 9b8e490

Browse files
committed
chore: core no longer needs a repositories volume
as it does not clone anything due to using build service
1 parent 36376ab commit 9b8e490

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,12 @@ COPY --from=build /usr/share/zoneinfo/ /usr/share/zoneinfo/
8484
# configure folder permissions
8585
COPY --from=build --chown=0:0 /app/tmp /tmp
8686
COPY --from=build --chown=0:0 /app/bin/drivers /app/bin/drivers
87-
COPY --from=build --chown=0:0 /app/repositories /app/repositories
8887

8988
# This seems to be the only way to set permissions properly
9089
COPY --from=build /bin /bin
9190
COPY --from=build /lib/ld-musl-* /lib/
9291
RUN chmod -R a+rwX /tmp
9392
RUN chmod -R a+rwX /app/bin/drivers
94-
RUN chmod -R a+rwX /app/repositories
9593
RUN rm -rf /bin /lib
9694

9795
# Copy the app into place
@@ -116,7 +114,7 @@ FROM minimal as core
116114
WORKDIR /app
117115

118116
EXPOSE 3000
119-
VOLUME ["/app/repositories/", "/app/bin/drivers/"]
117+
VOLUME ["/app/bin/drivers/"]
120118
ENTRYPOINT ["/bin/core"]
121119
HEALTHCHECK CMD ["/bin/core", "--curl", "http://localhost:3000/api/core/v1"]
122120
CMD ["/bin/core", "-b", "0.0.0.0", "-p", "3000"]

shard.lock

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ shards:
77

88
action-controller:
99
git: https://github.com/spider-gazelle/action-controller.git
10-
version: 7.4.3
10+
version: 7.4.4
1111

1212
active-model:
1313
git: https://github.com/spider-gazelle/active-model.git
@@ -81,10 +81,6 @@ shards:
8181
git: https://github.com/crystal-community/future.cr.git
8282
version: 1.0.0
8383

84-
git-repository:
85-
git: https://github.com/place-labs/git-repository.git
86-
version: 1.4.1
87-
8884
google:
8985
git: https://github.com/placeos/google.git
9086
version: 3.5.0
@@ -191,7 +187,7 @@ shards:
191187

192188
placeos-driver:
193189
git: https://github.com/placeos/driver.git
194-
version: 7.2.16
190+
version: 7.2.18
195191

196192
placeos-log-backend:
197193
git: https://github.com/place-labs/log-backend.git
@@ -259,7 +255,7 @@ shards:
259255

260256
ssh2:
261257
git: https://github.com/spider-gazelle/ssh2.cr.git
262-
version: 1.6.1
258+
version: 1.7.0
263259

264260
tasker:
265261
git: https://github.com/spider-gazelle/tasker.git

shard.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ dependencies:
1313
github: spider-gazelle/action-controller
1414
version: ~> 7.2
1515

16-
git-repository:
17-
github: place-labs/git-repository
18-
1916
habitat:
2017
github: luckyframework/habitat
2118
version: ~> 0.4

0 commit comments

Comments
 (0)