container ip
docker inspect --format '{{.NetworkSettings.IPAddress}}'
sudo -s
a random temp code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A sample test file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.8.3 | |
WORKDIR /application | |
# Install and upgrade pip | |
RUN pip install --upgrade pip | |
# Collect pip requirements | |
COPY requirements.txt . | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: python-script | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: python-script | |
template: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: json-configmap | |
namespace: default | |
data: | |
config_develop.json: | | |
{ | |
"current_env" : "gcp-development-minikube", | |
"Directory_Type" : "folder", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Helps in images upload. | |
Just add image in comments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img width="696" alt="image" src="https://user-images.githubusercontent.com/4608129/83413378-5be44880-a439-11ea-8715-422b077d1163.png"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.commons.csv.CSVFormat; | |
import org.apache.commons.csv.CSVParser; | |
import org.apache.commons.csv.CSVRecord; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
public class CsvReader { | |
public static void main(String[] args) { | |
try( | |
BufferedReader br = new BufferedReader(new FileReader("Sacramentorealestatetransactions.csv")); |
NewerOlder