mgr9525 / gokins Goto Github PK
View Code? Open in Web Editor NEW此仓库已转移到:https://github.com/gokins/gokins
License: MIT License
此仓库已转移到:https://github.com/gokins/gokins
License: MIT License
执行的shell环境其实是容器环境,不知道怎么破? 求教
为了能够更好的解决问题,希望在提出问题时,希望能说明具体原因。
1、您所使用的gokins的环境
2、问题的详细说明(错误报文、shell脚本等)
3、如果是使用上的问题,可以加入交流群(975316343)。其他所有关于程序的问题一律走issues
FROM golang:1.15.2-alpine AS builder
WORKDIR /build
RUN apk add git gcc libc-dev \
&& git clone https://github.com/mgr9525/gokins.git /build
RUN GOOS=linux GOARCH=amd64 go build -o bin/gokins main.go
FROM alpine:latest AS final
RUN apk update \
&& apk upgrade \
&& apk --no-cache add openssl \
&& apk --no-cache add ca-certificates \
&& rm -rf /var/cache/apk \
&& mkdir -p /app
COPY --from=builder /build/bin/gokins /app
WORKDIR /programs
EXPOSE 8030
ENTRYPOINT ["/app/gokins"]
1.应先执行 WORKDIR /build 命令创建/build目录,再执行git clone将代码clone到/build目录下,原有的Dockerfile打包镜像会出现找不到/build目录的问题
2.mkdir -p /app已经创建了,就无需再 WORKDIR /app,而且这个目录也无需挂在到宿主机
3.EXPOSE 8030 暴露8030端口看似多此一举,但是至少可以让打包镜像的人了解程序到底运行在哪个端口,免得还要先跑一个容器用natstat命令去查看。。。。。。
docker run -d -p 8030:8030 -v /programs:/programs --restart=always --name gokins susanoo/gokins:1.0
也没有其他动静啊。网站倒是还在。
首先感谢大家的关注和贡献,我们希望大家能够提交pr时提交到dev分支,如果你的pr被合并到dev之后,在未来发行版本时,会同时合并到master分支。
We hope you can submit pr to the dev branch, and the code of the dev branch will be merged into the master branch in future releases
问一下,项目的前段是不是没有开源啊?
体验了一下,整体效果还不错,不过我要用于部署项目的话,需要做以下几件事:
1.拉取git项目
2. 编译项目
3.将编译后的包发布到线上环境
这方面使用上挺不方便的,希望能做的比jenkins更加方便一些。 如果全部都要自己写shell脚本还挺麻烦的- -
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.