Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a157405

Browse files
committed
add pluck images
1 parent cf321ab commit a157405

File tree

7 files changed

+89
-6
lines changed

7 files changed

+89
-6
lines changed

‎README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Python docker images on alpine linux.
44

55
Inspireded from [@amancevice](https://hub.docker.com/r/amancevice/pandas), [@jfloff](https://hub.docker.com/r/jfloff/alpine-python/) and [@gliderlabs](http://gliderlabs.viewdocs.io/docker-alpine/usage/)
66

7+
Miniconda inspireded from [frol](https://github.com/frol/docker-alpine-miniconda2)
8+
79
## Images list
810

911

‎deploy.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
IMAGE_NAME=1ドル
44
: ${IMAGE_NAME:='phirov/scipy'}
55

6-
DF_PATH=2ドル
7-
: ${DF_PATH:='./scipy/2/Dockerfile'}
8-
9-
IMAGE_VERSION=3ドル
6+
IMAGE_VERSION=2ドル
107
: ${IMAGE_VERSION:=`docker images | grep ${IMAGE_NAME} | head -n 1 | awk '{print 2ドル}' | awk -F'.' '{print 1ドル"."2ドル"."3ドル+1}'`}
11-
: ${IMAGE_VERSION:='0.1.0'}
8+
: ${IMAGE_VERSION:='2'}
129

10+
DF_PATH=3ドル
11+
: ${DF_PATH:='scipy/2'}
1312

14-
docker build -f ${DF_PATH} -t ${IMAGE_NAME} -t ${IMAGE_NAME}:${IMAGE_VERSION} .
13+
cd ${DF_PATH}
14+
docker build -t ${IMAGE_NAME} -t ${IMAGE_NAME}:${IMAGE_VERSION} .

‎pluck/2/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# consult: https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices
2+
# Forked: https://hub.docker.com/r/amancevice/pandas
3+
FROM phirov/pandas:0.19-2
4+
MAINTAINER phirov@163.com
5+
6+
RUN apk add --no-cache \
7+
--virtual .build-deps \
8+
gcc \
9+
g++ \
10+
musl-dev \
11+
python-dev \
12+
postgresql-dev \
13+
py-psycopg2 \
14+
unixodbc-dev && \
15+
pip install pykafka && \
16+
pip install pymongo && \
17+
pip install pyodbc \
18+
psycopg2 && \
19+
pip install boto \
20+
boto3
21+
#apk del .build-deps

‎pluck/3/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# consult: https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices
2+
# Forked: https://hub.docker.com/r/amancevice/pandas
3+
FROM phirov/pandas:0.19-3
4+
MAINTAINER phirov@163.com
5+
6+
RUN apk add --no-cache \
7+
--virtual .build-deps \
8+
gcc \
9+
musl-dev \
10+
python3-dev \
11+
postgresql-dev g++ && \
12+
pip3 install --upgrade pip3 && \
13+
pip3 install pykafka && \
14+
pip3 install pymongo && \
15+
pip3 install pyodbc \
16+
psycopg2 && \
17+
pip3 install boto \
18+
boto3 && \
19+
apk del .build-deps

‎pluck/debug.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
: ${IMAGE_NAME:=1ドル}
4+
: ${IMAGE_NAME:='phirov/pluck'}
5+
: ${APP_NAME:=2ドル}
6+
: ${APP_NAME:='python-pluck'}
7+
8+
echo "
9+
docker run -it --rm --name ${APP_NAME} ${IMAGE_NAME} /bin/sh
10+
"
11+
docker run -it --rm \
12+
--name ${APP_NAME} \
13+
${IMAGE_NAME} \
14+
/bin/bash

‎pluck/deploy.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
DF_PATH=1ドル
4+
: ${DF_PATH:='2'}
5+
6+
IMAGE_NAME=2ドル
7+
: ${IMAGE_NAME:='phirov/pluck'}
8+
9+
IMAGE_VERSION=3ドル
10+
: ${IMAGE_VERSION:=${DF_PATH}}
11+
12+
cd ${DF_PATH}
13+
docker rmi ${IMAGE_NAME} ${IMAGE_NAME}:${IMAGE_VERSION}
14+
docker build -t ${IMAGE_NAME} -t ${IMAGE_NAME}:${IMAGE_VERSION} .

‎pluck/run.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
: ${IMAGE_NAME:=1ドル}
4+
: ${IMAGE_NAME:='phirov/pluck'}
5+
: ${APP_NAME:=2ドル}
6+
: ${APP_NAME:='python-pluck'}
7+
8+
echo "
9+
docker run -d --name ${APP_NAME} ${IMAGE_NAME}
10+
"
11+
docker run -d \
12+
--name ${APP_NAME} \
13+
${IMAGE_NAME}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /