Skip to content

Commit

Permalink
update version to 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Oct 15, 2019
1 parent deafd29 commit 2732360
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 37 deletions.
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ if [ $# -gt 0 ]; then
echo "no pyflakes"
run_pyflakes=
fi
fi
fi

if [ $run_pyflakes ]; then
echo "running pyflakes on hsds"
if [ $(./pyflakes.sh -count hsds) -ge 1 ]; then
Expand All @@ -28,7 +28,7 @@ if [ $run_pyflakes ]; then
fi

echo "clean stopped containers"
docker rm -v $(docker ps -aq -f status=exited)
docker rm -v $(docker ps -aq -f status=exited)

echo "building docker image"
docker-compose build
docker build -t hdfgroup/hsds .
6 changes: 3 additions & 3 deletions docker-compose.secure.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
head:
build: .
image: hdfgroup/hsds
container_name: hsds_head
restart: ${RESTART_POLICY}
mem_limit: ${HEAD_RAM}
Expand All @@ -26,7 +26,7 @@ services:
- proxy

dn:
build: .
image: hdfgroup/hsds
restart: ${RESTART_POLICY}
mem_limit: ${DN_RAM}
environment:
Expand All @@ -48,7 +48,7 @@ services:
depends_on:
- head
sn:
build: .
image: hdfgroup/hsds
restart: ${RESTART_POLICY}
mem_limit: ${SN_RAM}
environment:
Expand Down
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
head:
build: .
image: hdfgroup/hsds
container_name: hsds_head
restart: ${RESTART_POLICY}
mem_limit: ${HEAD_RAM}
Expand All @@ -28,7 +28,7 @@ services:
- proxy

dn:
build: .
image: hdfgroup/hsds
restart: ${RESTART_POLICY}
mem_limit: ${DN_RAM}
environment:
Expand All @@ -44,7 +44,7 @@ services:
- LOG_LEVEL=${LOG_LEVEL}
- CHUNK_MEM_CACHE_SIZE=${CHUNK_MEM_CACHE_SIZE}
- MAX_CHUNK_SIZE=${MAX_CHUNK_SIZE}

ports:
- ${DN_PORT}
logging:
Expand All @@ -54,7 +54,7 @@ services:
depends_on:
- head
sn:
build: .
image: hdfgroup/hsds
restart: ${RESTART_POLICY}
mem_limit: ${SN_RAM}
environment:
Expand All @@ -80,7 +80,7 @@ services:
- PASSWORD_SALT=${PASSWORD_SALT}
- GREETING=${GREETING}
- ABOUT=${ABOUT}

ports:
- ${SN_PORT}
logging:
Expand Down
2 changes: 1 addition & 1 deletion docs/docker_install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Export environment variables as shown in "Sample .bashrc" below.
5. Copy the file "passwd.default" to "passwd.txt". Add any usernames/passwords you wish
6. Add the DNS for the service to the /etc/hosts file. E.g. `127.0.0.1 hsds.hdf.test` (can use any valid DNS name) if you running containers directly on the host, or `192.168.99.100 hsds.hdf.test` if using docker machine (use `docker-machine ip` to get the IP address)
7. Create enviroment variables as in "Sample .bashrc" below
8. From hsds directory, build docker image: `$ docker-compose build`
8. From hsds directory, build docker image: `$ docker build -t hdfgroup/hsds .`
9. Start the service `$./runall.sh <n>` where n is the number of containers desired (defaults to 1)
10. Run `$ docker ps` and verify that the containers are running: hsds_head, hsds_async, hsds_sn_[1-n], hsds_dn_[1-n]
11. Go to http://hsds.hdf.test/about and verify that "cluster_state" is "READY" (might need to give it a minute or two)
Expand Down
2 changes: 1 addition & 1 deletion hsds/basenode.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from kubernetes import client as k8s_client
from kubernetes import config as k8s_config

HSDS_VERSION = "0.4"
HSDS_VERSION = "0.5"

def getVersion():
return HSDS_VERSION
Expand Down
46 changes: 23 additions & 23 deletions k8s_deployment.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
metadata:
labels:
app: hsds
name: hsds
spec:
spec:
replicas: 1
selector:
matchLabels:
selector:
matchLabels:
app: hsds
template:
metadata:
labels:
template:
metadata:
labels:
app: hsds
spec:
containers:
-
spec:
containers:
-
name: sn
image: "hsds"
imagePullPolicy: Never
ports:
-
ports:
-
containerPort: 5101
env:
- name: NODE_TYPE
value: sn
- name: AWS_S3_GATEWAY
value: http://s3.amazonaws.com
- name: AWS_ACCESS_KEY_ID
valueFrom:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: aws-auth-keys
key: aws_access_key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
valueFrom:
secretKeyRef:
name: aws-auth-keys
key: aws_secret_access_key
Expand All @@ -51,25 +51,25 @@ spec:
value: "Welcome to HSDS!"
- name: ABOUT
value: "HSDS is a webservice for HDF data"
-
-
name: dn
image: "hsds"
imagePullPolicy: Never
ports:
-
imagePullPolicy: Never
ports:
-
containerPort: 6101
env:
- name: NODE_TYPE
value: dn
- name: AWS_S3_GATEWAY
value: http://s3.amazonaws.com
- name: AWS_ACCESS_KEY_ID
valueFrom:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: aws-auth-keys
key: aws_access_key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
valueFrom:
secretKeyRef:
name: aws-auth-keys
key: aws_secret_access_key
Expand Down

0 comments on commit 2732360

Please sign in to comment.