sedd-es
v1.0.0
Published
Create image docker build --rm -t sedd-es . Create container docker run --name sedd-es -it -p 2113:2113 -p 1113:1113 sedd-es Start container docker start sedd-es Delete all containers docker rm $(docker ps -a -q) Delete all images dock
Downloads
2
Readme
Stuff to know
- .aws file required with aws creds
[default] aws_access_key_id=<KEY> aws_secret_access_key=<SECRET>
- Build the image
docker build --rm -t sedd-es .
- Run the image
docker run --name sedd-es -it -p 2113:2113 -p 1113:1113 sedd-es
- Create the image with backup data from aws s3://sedd-backup/
docker run --name sedd-es -it -p 2113:2113 -p 1113:1113 sedd-es <FILENAME>
- Restart the image
docker start sedd-es
- Enter shell of image
docker exec -it sedd-es bash
EventStore default credentials
- admin
- changeit
Hyper commands
- Take docker image from local machine and push to hyper
hyper load -l <IMAGE NAME>:latest
hyper load -l sedd-es:latest
- Run image - very similar to Docker
hyper run -d --name sedd-es -p 2113:2113 -p 1113:1113 <IMAGE NAME>
hyper run -d --name sedd-es -p 2113:2113 -p 1113:1113 sedd-es
AWS command to cp from s3
aws s3 cp s3://sedd-backup/<S3 FILE NAME> <LOCAL FILE NAME>
aws s3 cp s3://sedd-backup/es_2018_Jun_12:49:47.zip backup.zip
AWS create-registry output
{
"repository": {
"registryId": "035892600013",
"repositoryName": "sedd-es",
"repositoryArn": "arn:aws:ecr:us-west-1:035892600013:repository/sedd-es",
"createdAt": 1530008252.0,
"repositoryUri": "035892600013.dkr.ecr.us-west-1.amazonaws.com/sedd-es"
}
}
AWS commands to create docker image
- aws ecr create-repository --repository-name sedd-es
- docker tag sedd-es 035892600013.dkr.ecr.us-west-1.amazonaws.com/sedd-es
- aws ecr get-login --no-include-email
- docker push 035892600013.dkr.ecr.us-west-1.amazonaws.com/sedd-es
- DELETING image
- aws ecr delete-repository --repository-name sedd-es --force