Skip to content

Instantly share code, notes, and snippets.

View IamVigneshC's full-sized avatar
🏠
Working from home

Vignesh C IamVigneshC

🏠
Working from home
View GitHub Profile
When you use Action:Filter you are removing data from analysis before it is illustrated on the
visualisation, when you use Action:Highlight first all of the data is visualised, and only after that
the action is applied. This can lead to discrepancies in results.
Dashboard - Action Filters works at data level, Action highlight works for the whole dataset
@IamVigneshC
IamVigneshC / Simple Communication between Docker container microservices.md
Last active July 28, 2020 21:29
How Communication happens between Docker container microservices

Linking Microservice1 and Microservice2 using environment variable:

docker run -d -p 8100:8100 --env APP_ENV_HOST=http://micro1 --name=micro2 --link micro1 dockerhubimage/micro2:latest

Creating custom network and linking the microservices:

docker network create micro-network

docker run -d -p 8000:8000 --name=micro1 --network=micro-network dockerhubimage/micro2:latest

> You cannot remove a docker image if there is one or more container associated with it
> You cannot remove a container if it is up and running (need to stop and remove)
@IamVigneshC
IamVigneshC / fargate-task-definition.json
Created July 13, 2020 18:46
Fargate Task Definition
{
"containerDefinitions": [
{
"command": [
"/bin/sh -c \"echo '<html> <head> <title>Amazon ECS Sample App</title> <style>body {margin-top: 40px; background-color: #333;} </style> </head><body> <div style=color:white;text-align:center> <h1>Amazon ECS Sample App</h1> <h2>Congratulations!</h2> <p>Your application is now running on a container in Amazon ECS.</p> </div></body></html>' > /usr/local/apache2/htdocs/index.html && httpd-foreground\""
],
"entryPoint": [
"sh",
"-c"
],
@IamVigneshC
IamVigneshC / simple-app.json
Last active July 13, 2020 18:43
Amazon ECS task definition
{
"containerDefinitions": [
{
"name": "simple-app",
"image": "httpd:2.4",
"cpu": 10,
"memory": 300,
"portMappings": [
{
"hostPort": 80,
@IamVigneshC
IamVigneshC / Build and Run a docker file
Last active July 14, 2020 19:11
Container-Docker.doc
FROM node:10
WORKDIR /usr/src/app
RUN npm install
COPY package*.json ./
EXPOSE 8080
CMD [ "node", "server.js" ]