-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fantom used to be called Fan, but searching for that sucked so they went with Fantom! 30 to go.
- Loading branch information
Showing
5 changed files
with
49 additions
and
1 deletion.
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
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,16 @@ | ||
# syntax=docker/dockerfile:1 | ||
# escape=\ | ||
FROM 100hellos/000-base:local | ||
|
||
RUN sudo \ | ||
apk add --no-cache \ | ||
bash zip openjdk8 | ||
|
||
ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk | ||
|
||
COPY --chown=human:human ./artifacts /artifacts | ||
RUN cd /artifacts && make install | ||
|
||
ENV PATH="/artifacts/fan/bin:${PATH}" | ||
|
||
COPY --chown=human:human ./files /hello-world |
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 @@ | ||
include ../Makefile.language-container.mk |
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,19 @@ | ||
PREFIX ?= /usr/local | ||
|
||
.PHONY: install | ||
|
||
# This is the only necessary target in the Makefile | ||
# and it's expected to place the language interpretter | ||
# or compiler in the path. | ||
install: | ||
curl -o fantom.zip -L https://github.com/fantom-lang/fantom/releases/download/v1.0.80/fantom-1.0.80.zip | ||
unzip fantom.zip -d fantom | ||
mv fantom/fantom-1.0.80 rel | ||
chmod +x rel/bin/* | ||
rm -rf fantom && rm -f fantom.zip | ||
echo -e "\n\njdkHome=$$JAVA_HOME/\ndevHome=/artifacts/fan/\n" >> rel/etc/build/config.props | ||
git clone --depth=1 https://github.com/fantom-lang/fantom fan | ||
echo -e "\n\njdkHome=$$JAVA_HOME/" >> fan/etc/build/config.props | ||
rel/bin/fan fan/src/buildall.fan superclean | ||
rel/bin/fan fan/src/buildboot.fan compile | ||
fan/bin/fan fan/src/buildpods.fan compile |
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 @@ | ||
#!/usr/bin/env fan | ||
using [java] java.lang | ||
|
||
class HelloWorld | ||
{ | ||
|
||
Void main() | ||
{ | ||
System.out.println("Hello World!") | ||
} | ||
|
||
} |