Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
devops
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fbb87693
authored
Jul 17, 2019
by
Amir Aharon
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add s'more
parent
f147b803
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
common/docs/UsefulCommands.txt
common/docs/elasticsearch-rest.txt
docker/docker-commands.txt
common/docs/UsefulCommands.txt
View file @
fbb87693
...
...
@@ -60,3 +60,20 @@ https://docs.npmjs.com/getting-started/fixing-npm-permissions
[react-native]
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
[influx-db]
from inside the instance:
connect:
influx -database mcx_db -host 'localhost' -port '8086'
show measurements:
show measurements
delete until certain date:
delete from "speed" where time < '2019-07-17'
[orientdb]
./bin/console.sh
CONNECT REMOTE:localhost/MCX admin admin
- import
IMPORT DATABASE /orientdb/backup/MCX-orientdb-72.gz -preserveClusterIDs=true
common/docs/elasticsearch-rest.txt
View file @
fbb87693
...
...
@@ -2,6 +2,8 @@
https://www.elastic.co/guide/en/elasticsearch/reference/5.5/docker.html
https://www.elastic.co/guide/en/kibana/5.5/_configuring_kibana_on_docker.html
# show indices and size
curl 172.16.1.72:9200/_cat/indices?v
#create index with mapping
curl -XPUT "http://localhost:9200/activityidx" -d'{ "mappings": { "activity": { "properties": { "metaData.loc": { "type": "geo_point" } } } } }'
...
...
docker/docker-commands.txt
View file @
fbb87693
...
...
@@ -48,3 +48,25 @@ search:
[ if /etc/default/docker have no affect]
sudo docker -d --insecure-registry 172.16.1.5:5000 -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock &
[disconnecting a container from network]
docker network disconnect -f [network] [contaoiner]
e.g:
docker network disconnect -f docker_backend docker_orientdb_1
[clean all]
Kill all running containers:
# docker kill $(docker ps -q)
Delete all stopped containers
# docker rm $(docker ps -a -q)
Delete all images
# docker rmi $(docker images -q)
Remove unused data
# docker system prune
And some more
# docker system prune -af
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment