-
Notifications
You must be signed in to change notification settings - Fork 23
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
Showing
5 changed files
with
44 additions
and
14 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,15 +1,45 @@ | ||
FROM ubuntu:18.04 | ||
FROM ubuntu:bionic as build | ||
|
||
WORKDIR /tmp | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
ENV GENDEV /opt/gendev | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y build-essential wget unzip unrar-free texinfo git openjdk-8-jdk dos2unix && \ | ||
apt-get install -y \ | ||
build-essential \ | ||
wget \ | ||
unzip \ | ||
unrar-free \ | ||
texinfo \ | ||
git \ | ||
openjdk-8-jdk-headless && \ | ||
apt-get clean | ||
|
||
# To download gcc 6.3 with wget. We must provide a password with '@' in. | ||
RUN echo ftp_user=anonymous > ~/.wgetrc | ||
RUN echo [email protected] >> ~/.wgetrc | ||
#RUN echo ftp_user=anonymous > ~/.wgetrc | ||
#RUN echo [email protected] >> ~/.wgetrc | ||
|
||
#RUN bash -c "git clone https://github.com/kubilus1/gendev.git && cd gendev && make && rm -rf /tmp/*" | ||
WORKDIR /work | ||
COPY tools /work/tools/ | ||
COPY Makefile /work/ | ||
COPY sgdk /work/sgdk/ | ||
COPY toolchain /work/toolchain/ | ||
RUN make | ||
RUN make install | ||
|
||
FROM ubuntu:bionic | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
openjdk-8-jre-headless \ | ||
build-essential \ | ||
make && \ | ||
apt-get clean | ||
|
||
ENV GENDEV /opt/gendev | ||
COPY --from=build /opt/gendev $GENDEV | ||
ENV PATH $GENDEV/bin:$PATH | ||
|
||
RUN bash -c "git clone https://github.com/kubilus1/gendev.git && cd gendev && make && rm -rf /tmp/*" | ||
WORKDIR /src | ||
|
||
CMD /bin/bash | ||
ENTRYPOINT make -f $GENDEV/sgdk/mkfiles/makefile.gen |
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