forked from terrastruct/d2
-
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.
ci: Build and push official Dockerfile
Closes terrastruct#76
- Loading branch information
Showing
7 changed files
with
81 additions
and
29 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,18 @@ | ||
# https://hub.docker.com/repository/docker/terrastruct/d2 | ||
FROM debian:latest | ||
|
||
ARG TARGETARCH | ||
|
||
COPY ./d2-*-linux-$TARGETARCH.tar.gz /tmp | ||
RUN mkdir -p /usr/local/lib/d2 \ | ||
&& tar -C /usr/local/lib/d2 -xzf /tmp/d2-*-linux-"$TARGETARCH".tar.gz \ | ||
&& /usr/local/lib/d2/d2-*/scripts/install.sh \ | ||
&& rm -Rf /tmp/d2-*-linux-"$TARGETARCH".tar.gz | ||
|
||
WORKDIR /root/src | ||
EXPOSE 8080 | ||
ENV PORT 8080 | ||
ENV HOST 0.0.0.0 | ||
ENV BROWSER false | ||
|
||
ENTRYPOINT ["/usr/local/bin/d2"] |
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 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 @@ | ||
**/d2*/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
#### Features 🚀 | ||
|
||
- Diagram padding can now can be configured in the CLI (default 100px). | ||
[https://github.com/terrastruct/d2/pull/431](https://github.com/terrastruct/d2/pull/431) | ||
- Diagram padding can now can be configured in the CLI (default 100px). [https://github.com/terrastruct/d2/pull/431](https://github.com/terrastruct/d2/pull/431) | ||
- Add official Docker image. See [./docs/INSTALL.md#docker](./docs/INSTALL.md#docker). [#76](https://github.com/terrastruct/d2/issues/76) | ||
|
||
#### Improvements 🧹 | ||
|
||
#### Bugfixes ⛑️ | ||
|
||
- Fixed crash when sequence diagrams had no messages. | ||
[https://github.com/terrastruct/d2/pull/427](https://github.com/terrastruct/d2/pull/427) | ||
- Fixed `constraint` keyword setting label. | ||
[https://github.com/terrastruct/d2/issues/415](https://github.com/terrastruct/d2/issues/415) | ||
- Fixed serialization affecting binary plugins (TALA). | ||
[https://github.com/terrastruct/d2/pull/426](https://github.com/terrastruct/d2/pull/426) | ||
- Fixed crash when sequence diagrams had no messages. [https://github.com/terrastruct/d2/pull/427](https://github.com/terrastruct/d2/pull/427) | ||
- Fixed `constraint` keyword setting label. [https://github.com/terrastruct/d2/issues/415](https://github.com/terrastruct/d2/issues/415) | ||
- Fixed serialization affecting binary plugins (TALA). [https://github.com/terrastruct/d2/pull/426](https://github.com/terrastruct/d2/pull/426) |
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