1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 08:48:06 +08:00

add contexts-dev

This commit is contained in:
shaoying 2020-06-26 19:14:11 +08:00
parent f876c4f8df
commit 61477edf79
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,21 @@
FROM alpine
RUN wget http://192.168.0.103:9020/publish/ice.linux.amd64 -O /usr/local/bin/ice.bin
RUN chmod +x /usr/local/bin/ice.bin
RUN wget http://192.168.0.103:9020/publish/ice.sh -O /usr/local/bin/ice.sh
RUN chmod +x /usr/local/bin/ice.sh
RUN mkdir /root/src /root/etc /root/bin /root/var /root/usr
RUN wget http://192.168.0.103:9020/publish/order.js -O /usr/local/bin/order.js
RUN mkdir -p /root/usr/publish
RUN ln /usr/local/bin/order.js /root/usr/publish/order.js
ENV ctx_dev http://192.168.0.103:9020
ENV ctx_user shaoying
EXPOSE 9020
WORKDIR /root
CMD cd /root/
CMD /usr/local/bin/ice.sh start serve dev

View File

@ -0,0 +1,22 @@
FROM centos
RUN curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
RUN yum makecache
RUN mkdir /root/src /root/etc /root/bin /root/var /root/usr
RUN mkdir -p /root/.vim/autoload
RUN curl -o /root/etc/miss.sh http://192.168.0.103:9020/publish/miss.sh
RUN curl -o /root/.vim/autoload/plug.vim http://192.168.0.103:9020/publish/plug.vim
RUN curl -o /root/.vimrc http://192.168.0.103:9020/publish/vimrc
RUN cd /root && source etc/miss.sh
ENV ctx_dev http://192.168.0.103:9020
ENV ctx_user shaoying
ENV GOROOT /usr/local/go
ENV PATH /usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN cd /root && source etc/miss.sh
EXPOSE 9020
WORKDIR /root