-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #320 from dictu-lang/develop
Release 0.12.0
- Loading branch information
Showing
75 changed files
with
1,228 additions
and
383 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,5 @@ | ||
examples | ||
.github | ||
docs | ||
README.md | ||
LICENSE |
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,14 @@ | ||
FROM alpine | ||
|
||
WORKDIR Dictu | ||
|
||
RUN apk add make curl-dev gcc libc-dev --no-cache | ||
|
||
COPY . . | ||
|
||
RUN make dictu \ | ||
&& cp dictu /usr/bin/ \ | ||
&& dictu tests/runTests.du \ | ||
&& rm -rf * | ||
|
||
CMD ["dictu"] |
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 @@ | ||
FROM ubuntu | ||
|
||
WORKDIR Dictu | ||
|
||
RUN apt update \ | ||
&& apt install -y --no-install-recommends build-essential \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends libcurl4-gnutls-dev\ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY . . | ||
|
||
RUN make dictu \ | ||
&& cp dictu /usr/bin/ \ | ||
&& dictu tests/runTests.du \ | ||
&& rm -rf * | ||
|
||
CMD ["dictu"] |
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,35 @@ | ||
## Dictu Docker | ||
|
||
### Building the Docker image | ||
|
||
Make sure you have Docker installed on your system. Refer to [Docker installation](https://docs.docker.com/engine/install/). | ||
|
||
To build the Docker image of Dictu, clone the repository and change directory into `Dictu`. | ||
|
||
Run the following command from the **root of the project** i.e, the `Dictu` folder by default. | ||
|
||
To build the *Alpine* version of Dictu - | ||
|
||
```bash | ||
$ docker build -t dictu:alpine -f Docker/DictuAlpineDockerfile . | ||
``` | ||
|
||
To build the *Ubuntu* version of Dictu - | ||
|
||
```bash | ||
$ docker build -t dictu:ubuntu -f Docker/DictuUbuntuDockerfile . | ||
``` | ||
|
||
To start a REPL from this image, run - (Replace the tag with the appropriate version, i.e, alpine or ubuntu) | ||
|
||
```bash | ||
$ docker run -it dictu:ubuntu | ||
``` | ||
|
||
> The image built can be used in other docker images as a base image for running dictu files. Make sure you have the image built locally. | ||
```Dockerfile | ||
FROM dictu:ubuntu | ||
COPY example.du . | ||
RUN dictu example.du | ||
``` |
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
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
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
Oops, something went wrong.