Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 41282ba070 | |||
| 016f3be4bd | |||
| 29867aef13 | |||
| cc8f0507f2 | |||
| 7406cb88b0 | |||
| c2befd3d62 | |||
| 12ff81b91c | |||
| 4b8e019b84 | |||
| 6970776aa8 |
@@ -11,5 +11,10 @@
|
|||||||
<option name="enabled" value="true" />
|
<option name="enabled" value="true" />
|
||||||
</CommitMessageValidationOverride>
|
</CommitMessageValidationOverride>
|
||||||
</option>
|
</option>
|
||||||
|
<option name="commitMessageValidationEnabledOverride">
|
||||||
|
<BoolValueOverride>
|
||||||
|
<option name="enabled" value="true" />
|
||||||
|
</BoolValueOverride>
|
||||||
|
</option>
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
@@ -1,21 +1,21 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
<component name="ProjectRunConfigurationManager">
|
||||||
<configuration default="false" name="build/Dockerfile" type="docker-deploy" factoryName="dockerfile" server-name="Docker LOCAL">
|
<configuration default="false" name="build/Dockerfile" type="docker-deploy" factoryName="dockerfile" server-name="Docker (WSL)">
|
||||||
<deployment type="dockerfile">
|
<deployment type="dockerfile">
|
||||||
<settings>
|
<settings>
|
||||||
<option name="imageTag" value="docker.asifbacchus.dev/ab-livereload/ab-livereload:3.0.0" />
|
<option name="imageTag" value="docker.asifbacchus.dev/ab-livereload/ab-livereload:4.0.1" />
|
||||||
<option name="buildArgs">
|
<option name="buildArgs">
|
||||||
<list>
|
<list>
|
||||||
<DockerEnvVarImpl>
|
<DockerEnvVarImpl>
|
||||||
<option name="name" value="INTERNAL_VERSION" />
|
<option name="name" value="BUILD_DATE" />
|
||||||
<option name="value" value="3.0.0" />
|
<option name="value" value="2023-03-19" />
|
||||||
</DockerEnvVarImpl>
|
</DockerEnvVarImpl>
|
||||||
<DockerEnvVarImpl>
|
<DockerEnvVarImpl>
|
||||||
<option name="name" value="GIT_COMMIT" />
|
<option name="name" value="GIT_COMMIT" />
|
||||||
<option name="value" value="dc732efdb7" />
|
<option name="value" value="016f3be4bd" />
|
||||||
</DockerEnvVarImpl>
|
</DockerEnvVarImpl>
|
||||||
<DockerEnvVarImpl>
|
<DockerEnvVarImpl>
|
||||||
<option name="name" value="BUILD_DATE" />
|
<option name="name" value="INTERNAL_VERSION" />
|
||||||
<option name="value" value="2022-02-26" />
|
<option name="value" value="4.0.1" />
|
||||||
</DockerEnvVarImpl>
|
</DockerEnvVarImpl>
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
<option name="sourceFilePath" value="build/Dockerfile" />
|
<option name="sourceFilePath" value="build/Dockerfile" />
|
||||||
</settings>
|
</settings>
|
||||||
</deployment>
|
</deployment>
|
||||||
|
<EXTENSION ID="com.jetbrains.rider.docker.debug" isFastModeEnabled="true" isPublishEnabled="true" />
|
||||||
<method v="2" />
|
<method v="2" />
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
@@ -72,6 +72,8 @@ If you are mounting existing certificates:
|
|||||||
|
|
||||||
Obviously, this container needs something to monitor to determine whether changes have been made. This is accomplished via bind-mounting a directory from the host and is why 'polling' is necessary. Mount a directory with files to be monitored to */watch* in the container.
|
Obviously, this container needs something to monitor to determine whether changes have been made. This is accomplished via bind-mounting a directory from the host and is why 'polling' is necessary. Mount a directory with files to be monitored to */watch* in the container.
|
||||||
|
|
||||||
|
> Starting with v4.0.0 you can watch up to 5 directories! Simply mount them to `/watch`, `/watch2` ... `/watch5'.
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
The container’s entrypoint script recognizes a few commands that tell it what you want to do:
|
The container’s entrypoint script recognizes a few commands that tell it what you want to do:
|
||||||
|
|||||||
+4
-4
@@ -1,8 +1,8 @@
|
|||||||
# node-livereload server supporting SSL/TLS
|
# node-livereload server supporting SSL/TLS
|
||||||
|
|
||||||
# allow dynamic building by specifying base image elements as build-args
|
# allow dynamic building by specifying base image elements as build-args
|
||||||
ARG NODE_VERSION=16
|
ARG NODE_VERSION=18
|
||||||
ARG ALPINE_VERSION=3.15
|
ARG ALPINE_VERSION=3.17
|
||||||
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} as builder
|
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} as builder
|
||||||
ARG NODE_VERSION
|
ARG NODE_VERSION
|
||||||
ARG ALPINE_VERSION
|
ARG ALPINE_VERSION
|
||||||
@@ -10,7 +10,7 @@ ARG ALPINE_VERSION
|
|||||||
# install node dependences
|
# install node dependences
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY [ "package.json", "package-lock.json", "./" ]
|
COPY [ "package.json", "package-lock.json", "./" ]
|
||||||
RUN npm ci --production
|
RUN npm install -g npm@latest && npm ci --omit=dev
|
||||||
|
|
||||||
# final container
|
# final container
|
||||||
FROM alpine:${ALPINE_VERSION} as final
|
FROM alpine:${ALPINE_VERSION} as final
|
||||||
@@ -22,7 +22,7 @@ ARG NODE_UID=9999
|
|||||||
ARG NODE_GID=9999
|
ARG NODE_GID=9999
|
||||||
RUN addgroup -g ${NODE_GID} -S node \
|
RUN addgroup -g ${NODE_GID} -S node \
|
||||||
&& adduser -G node -S -u ${NODE_UID} node \
|
&& adduser -G node -S -u ${NODE_UID} node \
|
||||||
&& mkdir /watch /certs \
|
&& mkdir /watch /watch2 /watch3 /watch4 /watch5 /certs \
|
||||||
&& chown root:node /certs \
|
&& chown root:node /certs \
|
||||||
&& chmod 770 /certs
|
&& chmod 770 /certs
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ else {
|
|||||||
// start LiveReload server
|
// start LiveReload server
|
||||||
// noinspection JSVoidFunctionReturnValueUsed
|
// noinspection JSVoidFunctionReturnValueUsed
|
||||||
const lrServer = livereload.createServer(lrOptions, healthCheck.start());
|
const lrServer = livereload.createServer(lrOptions, healthCheck.start());
|
||||||
lrServer.watch('/watch');
|
lrServer.watch(['/watch', '/watch2', '/watch3', '/watch4', '/watch5']);
|
||||||
|
|
||||||
// graceful termination on signals
|
// graceful termination on signals
|
||||||
const termSignals = {
|
const termSignals = {
|
||||||
|
|||||||
Generated
+417
-257
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "ab-livereload",
|
"name": "ab-livereload",
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "^4.17.1",
|
"express": "^4.18.2",
|
||||||
"livereload": "^0.9.3"
|
"livereload": "^0.9.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user