-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: ansibleserver: use native alpine, include openssh
- Loading branch information
Showing
3 changed files
with
18 additions
and
16 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,3 +1,3 @@ | ||
FROM registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver-base:v3.3 | ||
FROM registry.cn-beijing.aliyuncs.com/yunionio/ansibleserver-base:1.0.0 | ||
|
||
ADD ./_output/bin/ansibleserver /opt/yunion/bin/ansibleserver | ||
ADD ./_output/alpine-build/bin/ansibleserver /opt/yunion/bin/ansibleserver |
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,13 +1,12 @@ | ||
FROM frolvlad/alpine-glibc:glibc-2.28 | ||
|
||
MAINTAINER "Zexi Li <lizexi@yunionyun.com>" | ||
|
||
ENV TZ Asia/Shanghai | ||
|
||
RUN mkdir -p /opt/yunion/bin | ||
|
||
RUN apk update && \ | ||
apk add --no-cache tzdata git ansible ca-certificates && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | ||
FROM alpine:3.11.6 | ||
|
||
MAINTAINER "Yousong Zhou <zhouyousong@yunionyun.com>" | ||
|
||
# openssh-client, for ansible ssh connection | ||
# git, ca-certificates, for fetching ansible roles | ||
RUN set -x \ | ||
&& apk update \ | ||
&& apk add openssh-client \ | ||
&& apk add ansible \ | ||
&& apk add tzdata git ca-certificates \ | ||
&& rm -rf /var/cache/apk/* |
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