-
Notifications
You must be signed in to change notification settings - Fork 7
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
29 additions
and
7 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,14 +1,13 @@ | ||
FROM alpine:3.6 | ||
FROM alpine:3.7 | ||
|
||
LABEL maintainer="Amir Mofasser (@amimof)" | ||
|
||
COPY sshd_config /etc/ssh/sshd_config | ||
COPY server / | ||
|
||
RUN apk add --no-cache --update openssh bash \ | ||
RUN set -x \ | ||
&& apk add --no-cache --update openssh bash \ | ||
&& mkdir -p /var/run/sshd \ | ||
&& chmod +x /server | ||
|
||
EXPOSE 22 | ||
|
||
CMD ["/server"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: sftp | ||
spec: | ||
containers: | ||
- name: sftp | ||
image: amimof/sftp | ||
env: | ||
- name: SSH_USERNAME | ||
value: "beyonce" | ||
- name: SSH_PASSWORD | ||
value: "knowles" | ||
ports: | ||
- containerPort: 22 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Protocol 2 | ||
Port 22 | ||
UseDNS no | ||
PermitRootLogin no | ||
X11Forwarding no | ||
|