Skip to content

Instantly share code, notes, and snippets.

@gaving
Created September 8, 2016 18:19
Show Gist options
  • Save gaving/8296815f90ba771ce7e8bbd8bcbde1f6 to your computer and use it in GitHub Desktop.
Save gaving/8296815f90ba771ce7e8bbd8bcbde1f6 to your computer and use it in GitHub Desktop.
docker run -d -p 49160:22 -p 49161:1521 -e ORACLE_ALLOW_REMOTE=true wnameless/oracle-xe-11g
oracle instance
elasticsearch instance
get river importing into elastic search
UPDATE: (docker >= 1.3) Thanks to WiR3D user who suggested another way to get
container's shell. If we use attach we can use only one instance of shell. So
if we want open new terminal with new instance of container's shell, we just
need run the following:
$ sudo docker exec -i -t 665b4a1e17b6 /bin/bash #by ID
or
$ sudo docker exec -i -t loving_heisenberg /bin/bash #by Name
$ root@665b4a1e17b6:/#
http --pretty=all http://192.168.99.100:9200/blog/user/dilbert
get default service, should be 'xe'
select value from v$parameter where name like '%service_name%';
curl -XPOST 192.168.99.100:9200/shakespeare -d '{
"settings" : {
"number_of_shards" : 1
},
"mappings" : {
"plays" : {
"properties" : {}
}
}
}'
select line_number as "_id", s.* from shakespeare s
-Des.http.cors.enabled=true
http.cors.enabled: true
http.cors.allow-origin: "*"
docker-machine create --driver=virtualbox default
docker-machine start
eval "$(docker-machine env default)"
docker pull sath89/apex
docker pull sath89/oracle-xe-11g
docker pull elasticsearch
docker run -d -p 9200:9200 -p 9300:9300 elasticsearch
docker run -d -p 8080:8080 -p 1521:1521 sath89/oracle-xe-11g
export DB_CONTAINER_NAME="reverent_curran"
docker run -it --rm --volumes-from ${DB_CONTAINER_NAME} --link ${DB_CONTAINER_NAME}:oracle-database sath89/apex install
http://192.168.99.100:9200/shakespeare
http://192.168.99.100:8080/apex/
docker-compose -f run.yml build
docker-compose -f run.yml up
docker run --name kibana -e ELASTICSEARCH_URL=http://192.168.99.100:9200 -p 5601:5601 -d kibana
calaca, http-server
searchkit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment