-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c7c3e1
commit 2bf18a8
Showing
14 changed files
with
32 additions
and
24 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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
FROM germanorizzo/ws4sqlite | ||
ADD . /excalidraw | ||
WORKDIR /excalidraw | ||
ENTRYPOINT ["/ws4sqlite"] | ||
CMD ["-db", "/excalidraw/storage.db", "-serve-dir", "/excalidraw/www"] | ||
FROM germanorizzo/ws4sqlite AS ws4sqlite | ||
|
||
FROM alpine | ||
ADD init /init | ||
ADD www /excalidraw/www | ||
ADD storage.yaml /excalidraw/storage/storage.yaml | ||
COPY --from=ws4sqlite /ws4sqlite /ws4sqlite | ||
ENTRYPOINT ["/bin/sh", "/init"] | ||
CMD ["-db", "/excalidraw/storage/storage.db", "-serve-dir", "/excalidraw/www"] |
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,12 @@ | ||
#!/bin/sh | ||
|
||
if [ ! -e /excalidraw/storage/storage.yaml ]; | ||
then | ||
cat > /excalidraw/storage/storage.yaml <<EOF | ||
initStatements: | ||
- CREATE TABLE storage (id TEXT PRIMARY KEY, time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, name TEXT, data TEXT) | ||
- CREATE INDEX idx_time ON storage(time); | ||
EOF | ||
fi | ||
|
||
exec /ws4sqlite $@ |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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
File renamed without changes
File renamed without changes
File renamed without changes
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
File renamed without changes.
File renamed without changes.
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
This file was deleted.
Oops, something went wrong.