-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add sshd and crond containers (#3)
- Loading branch information
Showing
6 changed files
with
57 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ARG BASE_TAG=8-dev | ||
FROM wodby/drupal-php:${BASE_TAG} | ||
|
||
ARG COPY_FROM=. | ||
ARG COPY_TO=. | ||
COPY --chown=1000:1000 ${COPY_FROM} ${COPY_TO} | ||
|
||
# Copy the required crontab file | ||
COPY ${COPY_FROM}/infrastructure/docker/cron/www-data.crontab /etc/crontabs/www-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.git/ | ||
.ddev/ | ||
.docker/ | ||
|
||
.github/ | ||
.idea/ | ||
.travis/ | ||
|
||
/docker-compose*.yml | ||
|
||
/deploy/* | ||
/infrastructure/terraform/ | ||
/logs/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
ARG BASE_IMAGE | ||
FROM ${BASE_IMAGE} | ||
|
||
ARG COPY_FROM | ||
ARG COPY_TO | ||
ARG BASE_TAG=8-dev | ||
FROM wodby/drupal-php:${BASE_TAG} | ||
|
||
ARG COPY_FROM=. | ||
ARG COPY_TO=. | ||
COPY --chown=1000:1000 ${COPY_FROM} ${COPY_TO} | ||
|
||
# Copy the required crontab file | ||
COPY ${COPY_FROM}/infrastructure/docker/cron/www-data.crontab /etc/crontabs/www-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ARG BASE_TAG=8-dev | ||
FROM wodby/drupal-php:${BASE_TAG} | ||
|
||
ARG COPY_FROM=. | ||
ARG COPY_TO=. | ||
COPY --chown=1000:1000 ${COPY_FROM} ${COPY_TO} | ||
|
||
USER root | ||
|
||
# Copy Tailscale binaries from the tailscale image on Docker Hub. | ||
COPY --from=docker.io/tailscale/tailscale:stable /usr/local/bin/tailscaled /var/runtime/tailscaled | ||
COPY --from=docker.io/tailscale/tailscale:stable /usr/local/bin/tailscale /var/runtime/tailscale | ||
RUN mkdir -p /var/run && ln -s /tmp/tailscale /var/run/tailscale && \ | ||
mkdir -p /var/cache && ln -s /tmp/tailscale /var/cache/tailscale && \ | ||
mkdir -p /var/lib && ln -s /tmp/tailscale /var/lib/tailscale && \ | ||
mkdir -p /var/task && ln -s /tmp/tailscale /var/task/tailscale | ||
|
||
|
||
COPY ${COPY_FROM}/infrastructure/docker/sshd/init-tailscale /docker-entrypoint-init.d/ | ||
|
||
USER wodby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir -p /tmp/tailscale | ||
/var/runtime/tailscaled --tun=userspace-networking --socks5-server=localhost:1055 & | ||
/var/runtime/tailscale up --ssh --authkey=${TAILSCALE_AUTHKEY} --hostname=${TAILSCALE_NAME} | ||
echo "Tailscale started!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters