Commit 73de2000 by Amir Aharon

some updates

parent 70246ce9
......@@ -89,3 +89,8 @@ CONNECT remote:localhost/MCX admin admin
From the project directory]
gradle init --type java-application
[system control]
sysctl -w fs.inotify.max_user_watches=524288
sysctl -w fs.file-max=20000000
sysctl -w vm.max_map_count=262144
......@@ -10,3 +10,6 @@ e.g:
FROM 172.16.1.212:5050/ipgallery.common.java/microservice
[if authrization fail on large image push]
https://municipalitybank.com/admin/application_settings
change Container Registry > Authorization token duration
\ No newline at end of file
......@@ -30,4 +30,15 @@ https://github.com/Microsoft/vcpkg
https://help.ubuntu.com/community/Repositories/Personal
https://medium.com/sqooba/create-your-own-custom-and-authenticated-apt-repository-1e4a4cf0b864
[remote developement]
https://code.visualstudio.com/docs/remote/containers
[ new c++17 features]
https://www.codingame.com/playgrounds/2205/7-features-of-c17-that-will-simplify-your-code/introduction
[intellisense]
C/C++: Edit Configurations (UI) :
- add to Compiler arguments - -std=c++17
- include path - add /home/vscode/vcpkg/installed/x64-linux/include
Install microk8s : https://microk8s.io/docs
microk8s.kubectl config view --raw > $HOME/.kube/config
https://istio.io/docs/setup/getting-started/
Note: no external IP
export INGRESS_PORT=$(micro8ks.kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}')
export SECURE_INGRESS_PORT=$(micro8ks.kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="https")].nodePort}')
export INGRESS_HOST=$(micro8ks.kubectl get po -l istio=ingressgateway -n istio-system -o jsonpath='{.items[0].status.hostIP}')
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
# To fully customize the contents of this image, use the following Dockerfile as a base and add the RUN statement from this file:
# https://github.com/microsoft/vscode-dev-containers/blob/v0.112.0/containers/debian-10-git/.devcontainer/Dockerfile
#FROM mcr.microsoft.com/vscode/devcontainers/base:0-debian-10
FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu-18.04
# This Dockerfile's base image has a non-root user with sudo access. Use the "remoteUser"
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
# will be updated to match your local UID/GID (when using the dockerFile property).
# See https://aka.ms/vscode-remote/containers/non-root-user for details.
ARG USERNAME=vscode
ARG USER_UID=1000
ARG USER_GID=$USER_UID
# Avoid warnings by switching to noninteractive
ENV DEBIAN_FRONTEND=noninteractive
# Configure apt and install packages
RUN apt-get update \
#
# Install C++ tools
&& apt-get -y install build-essential cmake cppcheck valgrind \
#
# [Optional] Update UID/GID if needed
&& if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then \
groupmod --gid $USER_GID $USERNAME \
&& usermod --uid $USER_UID --gid $USER_GID $USERNAME \
&& chown -R $USER_UID:$USER_GID /home/$USERNAME; \
fi \
#
# Clean up
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
# Switch back to dialog for any ad-hoc use of apt-get
ENV DEBIAN_FRONTEND=dialog
# install vcpkg in user
USER vscode
WORKDIR /home/vscode
RUN git clone https://github.com/microsoft/vcpkg.git
RUN cd vcpkg && ./bootstrap-vcpkg.sh && ./vcpkg integrate install
# add vcpkg to path
RUN echo "export PATH=${PATH}:${HOME}/vcpkg:${HOME}/.local/bin" >> /home/vscode/.bashrc
https://opensource.com/article/18/8/tools-container-security
https://www.stackrox.com/post/2017/08/hardening-docker-containers-and-hosts-against-vulnerabilities-a-security-toolkit/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment