Skip to content

Commit

Permalink
Aerospike environment (laradock#2119)
Browse files Browse the repository at this point in the history
* aerospike's config file is not being used but overwritten on container start
* added environment variable handling for aerospike configuration
  • Loading branch information
dansoap authored and bestlong committed May 9, 2019
1 parent 4417083 commit e8d84cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 81 deletions.
4 changes: 0 additions & 4 deletions aerospike/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM aerospike:latest

LABEL maintainer="Luciano Jr <[email protected]>"

RUN rm /etc/aerospike/aerospike.conf

COPY aerospike.conf /etc/aerospike/aerospike.conf
77 changes: 0 additions & 77 deletions aerospike/aerospike.conf

This file was deleted.

4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,10 @@ services:
- "${AEROSPIKE_FABRIC_PORT}:3001"
- "${AEROSPIKE_HEARTBEAT_PORT}:3002"
- "${AEROSPIKE_INFO_PORT}:3003"
environment:
- STORAGE_GB=${AEROSPIKE_STORAGE_GB}
- MEM_GB=${AEROSPIKE_MEM_GB}
- NAMESPACE=${AEROSPIKE_NAMESPACE}
networks:
- backend

Expand Down
3 changes: 3 additions & 0 deletions env-example
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ AEROSPIKE_SERVICE_PORT=3000
AEROSPIKE_FABRIC_PORT=3001
AEROSPIKE_HEARTBEAT_PORT=3002
AEROSPIKE_INFO_PORT=3003
AEROSPIKE_STORAGE_GB=1
AEROSPIKE_MEM_GB=1
AEROSPIKE_NAMESPACE=test

### RETHINKDB #############################################

Expand Down

0 comments on commit e8d84cf

Please sign in to comment.