-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitpod.Dockerfile
42 lines (32 loc) · 1.39 KB
/
.gitpod.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# ビルド環境を構築してビルド
#FROM debian:buster-slim as build-env
#FROM ubuntu:18.04
FROM gitpod/workspace-full
ENV HAKONIWA_HOME=/home/gitpod/hakoniwa
ENV ATHRILL_GCC=${HAKONIWA_HOME}/athrill-gcc
USER root
RUN apt-get update \
&& apt-get -y install curl make \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
USER gitpod
RUN cd /home/gitpod \
&& curl -L -O https://www.toppers.jp/download.cgi/athrill-target-rh850f1x-20200820.tar.gz \
&& tar xf athrill-target-rh850f1x-20200820.tar.gz \
&& rm athrill-target-rh850f1x-20200820.tar.gz
# athrill-gcc
RUN curl -L https://github.com/toppers/athrill-gcc-v850e2m/releases/download/v1.1/athrill-gcc-package.tar.gz -O \
&& tar xf athrill-gcc-package.tar.gz \
&& cd athrill-gcc-package \
&& tar xf athrill-gcc.tar.gz \
&& mv usr/local/athrill-gcc ${HAKONIWA_HOME} \
&& cd ../ \
&& rm -rf athrill-gcc-package \
&& rm athrill-gcc-package.tar.gz
# cfg
RUN curl -L -O https://github.com/mitsut/cfg/releases/download/1.9.7/cfg-1.9.7-x86_64-unknown-linux-gnu.tar.gz \
&& tar xf cfg-1.9.7-x86_64-unknown-linux-gnu.tar.gz -C ${HAKONIWA_HOME}/ \
&& rm cfg-1.9.7-x86_64-unknown-linux-gnu.tar.gz
ENV LD_LIBRARY_PATH="${ATHRILL_GCC}:${ATHRILL_GCC}/lib:${LD_LIBRARY_PATH}"
USER gitpod
RUN echo 'export PATH=${ATHRILL_GCC}/bin:${HAKONIWA_HOME}/athrill-target-rh850f1x/build_linux:$PATH' >>/home/gitpod/.bashrc