Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAMESPACE env not working #29

Closed
srfrnk opened this issue Mar 5, 2018 · 3 comments
Closed

NAMESPACE env not working #29

srfrnk opened this issue Mar 5, 2018 · 3 comments

Comments

@srfrnk
Copy link

srfrnk commented Mar 5, 2018

Run

docker run -e "NAMESPACE=aerospike-demo" aerospike/aerospike-server
docker exec -it <...> bash
aql
show namespaces

And it prints:

+------------+
| namespaces |
+------------+
| "test"     |
+------------+
[127.0.0.1:3000] 1 row in set (0.001 secs)

OK

Should have been aerospike-demo right?

@srfrnk
Copy link
Author

srfrnk commented Mar 5, 2018

Verified that it works correctly if you run:

docker run -e "NAMESPACE=aerospike-demo" aerospike/aerospike-server:3.14.1.8

@volmarl
Copy link
Contributor

volmarl commented Mar 22, 2018

Did you do a docker pull prior to testing. This new template and -e option were recently added.

docker pull aerospike/aerospike-server
Using default tag: latest
latest: Pulling from aerospike/aerospike-server
22dc81ace0ea: Pull complete 
1a8b3c87dba3: Pull complete 
91390a1c435a: Pull complete 
07844b14977e: Pull complete 
b78396653dae: Pull complete 
9f0cf5721ae9: Pull complete 
1f61d1e11d93: Pull complete 
6a444a0e4f16: Pull complete 
Digest: sha256:b0fbc93690cb6bf62d67c2c28cf67972908abea3bc8b812abfcc849c9b9d7119
Status: Downloaded newer image for aerospike/aerospike-server:latest

docker run -e "NAMESPACE=aerospike-demo" --name aerotest aerospike/aerospike-server


 docker exec -ti aerotest aql -c "show namespaces"
show namespaces
+------------------+
| namespaces       |
+------------------+
| "aerospike-demo" |
+------------------+
[127.0.0.1:3000] 1 row in set (0.001 secs)

OK


@srfrnk
Copy link
Author

srfrnk commented Mar 23, 2018

It does look like it's working now.
Thanks!

@srfrnk srfrnk closed this as completed Mar 23, 2018
mcoberly2 pushed a commit that referenced this issue Dec 9, 2022
Also added Add support for 4.9 - but tests will fail on EE for 4.9 due to the feature key version being incompatible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants