source <(gsutil cat gs://cloud-training/gsp318/marking/setup_marking.sh)
gcloud source repos clone valkyrie-app
cd valkyrie-app
cat > Dockerfile <<EOF
FROM golang:1.10
WORKDIR /go/src/app
COPY source .
########################################################################################
Task 1: Download the monolith code and build your container
git clone https://github.com/googlecodelabs/monolith-to-microservices.git
cd ~/monolith-to-microservices
./setup.sh
- Need install rbac and storage by
microk8s enable dns rbac storage
- Install loft
This file contains hidden or 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 adoptopenjdk/openjdk14-openj9:x86_64-alpine-jre-14_36.1_openj9-0.19.0 | |
RUN apk add curl | |
ENV QUARKUS_LAUNCH_DEVMODE=true \ | |
JAVA_ENABLE_DEBUG=true | |
COPY target/quarkus-app/lib/ /deployments/lib/ | |
COPY target/quarkus-app/*.jar /deployments/ | |
COPY target/quarkus-app/app/ /deployments/app/ | |
COPY target/quarkus-app/quarkus/ /deployments/quarkus/ |
Ref: Could you provide an example to load big dataset like Percona?
# SET GLOBAL sql_mode = ''
for y in `seq 1987 2018`
do
for i in `seq 1 12`
do
echo "$y - $i"
mysql --local-infile=1 -h 127.0.0.1 -P 4000 -u root -e "load data local infile '/home/philipz/otp/On_Time_On_Time_Performance_${y}_${i}.csv' into table otp.ontime fields terminated by ',' OPTIONALLY ENCLOSED BY '\"' ignore 1 lines"
done
upx --best -k kafka-quickstart-1.0-SNAPSHOT-runner
This file contains hidden or 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
sudo nano /etc/default/grub | |
add this line to your grub file: | |
GRUB_RECORDFAIL_TIMEOUT=0 | |
sudo update-grub | |
Done! |
./mvnw package -Pnative -Dquarkus.native.container-runtime=docker -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-native-image:19.3.1-java8