1. security
https://alpinelinux.org/posts/Docker-image-vulnerability-CVE-2019-5021.html
2. ngix docker
https://5xruby.tw/posts/deploying-your-docker-rails-app/
https://www.docker.com/blog/tips-for-deploying-nginx-official-image-with-docker/
https://takacsmark.com/copying-files-from-host-to-docker-container/
#
glibc
https://www.linuxquestions.org/questions/linux-general-1/what-are-libc-glibc-49709/
https://stackoverflow.com/questions/11372872/what-is-the-role-of-libcglibc-in-our-linux-app
#musl
https://www.musl-libc.org/how.html
#nginx
https://nginx.org/en/docs/ngx_core_module.html#worker_processes
https://blog.hellojcc.tw/2015/12/07/nginx-beginner-tutorial/
https://serverfault.com/questions/706694/use-nginx-as-reverse-proxy-for-multiple-servers
https://stackoverflow.com/questions/18861300/how-to-run-nginx-within-a-docker-container-without-halting
# gcc
https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html
https://www.ibm.com/developerworks/cn/linux/l-cn-linklib/gcc.pdf
https://gcc.gnu.org/onlinedocs/gcc.pdf
# kernel
http://index-of.es/EBooks/O'Reilly%20-%20Understanding%20The%20Linux%20Kernel.pdf
https://bootlin.com/doc/training/linux-kernel/linux-kernel-slides.pdf
https://cse.yeditepe.edu.tr/~kserdaroglu/spring2014/cse331/termproject/BOOKS/ProfessionalLinuxKernelArchitecture-WolfgangMauerer.pdf
# clanguage
https://www.tutorialspoint.com/cprogramming/c_data_types.htm
# compose3
https://docs.docker.com/compose/compose-file/
# bridge netwok
https://godleon.github.io/blog/Docker/docker-network-bridge/
2019年11月21日 星期四
Linux kernel
1.
Linux makes system and kernel information available in user space through pseudo filesystems, sometimes also called virtual filesystems
▶ proc, usually mounted on /proc: Operating system related information (processes, memory management parameters...)
▶ sysfs, usually mounted on /sys: Representation of the system as a set of devices and buses. Information about these devices.
Linux makes system and kernel information available in user space through pseudo filesystems, sometimes also called virtual filesystems
▶ proc, usually mounted on /proc: Operating system related information (processes, memory management parameters...)
▶ sysfs, usually mounted on /sys: Representation of the system as a set of devices and buses. Information about these devices.
2019年11月20日 星期三
zip source code and compiler
https://github.com/kuba--/zip/blob/master/src/zip.c
http://www.linuxfromscratch.org/blfs/view/8.0/general/zip.html
https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Markov_chain_algorithm
http://www.linuxfromscratch.org/blfs/view/8.0/general/zip.html
https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Markov_chain_algorithm
2019年11月11日 星期一
docker asp net
https://gitlab.alpinelinux.org/alpine/aports/issues/8603
https://github.com/microsoft/DockerTools/issues/131
https://github.com/microsoft/DockerTools/issues/131
https://hub.docker.com/_/microsoft-dotnet-core-sdk
https://www.cnblogs.com/redpod/p/dotnet_core_alpine_linux.html
https://dotnet.microsoft.com/download/dotnet-core/3.0
https://tatmingstudio.blogspot.com/2017/07/aspnet-core-centos-7-apache.html
https://linuxhint.com/install_dot_net_core_centos7/
https://hub.docker.com/_/microsoft-dotnet-core/
https://docs.microsoft.com/zh-tw/dotnet/architecture/microservices/net-core-net-framework-containers/official-net-docker-images
https://hub.docker.com/_/microsoft-dotnet-core-sdk/
https://ithelp.ithome.com.tw/articles/10204760
https://docs.microsoft.com/zh-tw/dotnet/core/linux-prerequisites?tabs=netcore21
https://stackoverflow.com/questions/51354868/run-asp-net-core-app-under-linux-on-startup
https://hub.docker.com/_/microsoft-dotnet-core-sdk/
# centos 7
https://dotnet.microsoft.com/learn/aspnet/hello-world-tutorial/install
# deotnet 2.2
https://knative.dev/v0.4-docs/serving/samples/hello-world/helloworld-csharp/
# Hello world
https://riptutorial.com/dot-net-core/example/19361/building-a-hello-world-sample-application
# .net
https://medium.com/wolox-driving-innovation/how-to-create-your-first-net-e2223dedb74f
# publis
https://docs.microsoft.com/zh-tw/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-3.0
# asp.net
https://ithelp.ithome.com.tw/articles/10204760
https://blog.darkthread.net/blog/is-aspnetcore-worth-learning/
# run with hello
https://subscription.packtpub.com/book/application_development/9781785886751/1/ch01lvl1sec15/creating-an-asp-net-core-mvc-application-on-linux
#kestrel
https://docs.microsoft.com/zh-tw/aspnet/core/fundamentals/servers/?view=aspnetcore-3.0&tabs=linux
https://blog.darkthread.net/blog/set-kestrel-port/
https://blog.darkthread.net/blog/aspnetcore-with-nginx/
https://stackify.com/what-is-kestrel-web-server/
# asp.net image
https://docs.microsoft.com/zh-tw/dotnet/architecture/microservices/net-core-net-framework-containers/net-container-os-targets
# asp.net example
https://www.atlascode.com/blog/running-asp-net-core-in-an-alpine-linux-docker-container/
# content
http://www.secretgeek.net/dotnet_run
# example
https://ithelp.ithome.com.tw/articles/10201977
# dotnet sln
https://stackoverflow.com/questions/42730877/net-core-when-to-use-dotnet-new-sln
# dotnet publish
https://docs.microsoft.com/zh-tw/dotnet/core/tools/dotnet-publish?tabs=netcore21
# dotnet alpine and publish
https://github.com/dotnet/core/issues/1689
# alpine pakcge
https://pkgs.alpinelinux.org/contents?file=ld-linux-x86-64.so.2&path=&name=&branch=&repo=&arch=
# dotnet url
https://blog.darkthread.net/blog/set-kestrel-port/
# dotnet centos
https://dotnet.microsoft.com/download/linux-package-manager/centos7/sdk-current
# dotnet https
https://github.com/aspnet/AspNetCore/issues/6011
https://ithelp.ithome.com.tw/articles/10197326
# dotnet publish copy
https://stackoverflow.com/questions/119271/copy-all-files-and-folders-using-msbuild
https://stackoverflow.com/questions/42712055/asp-net-core-exclude-or-include-files-on-publish
https://github.com/dotnet/cli/issues/3833
https://docs.microsoft.com/zh-tw/dotnet/core/tools/project-json-to-csproj
https://dotblogs.com.tw/supershowwei/2017/07/26/164153
https://docs.microsoft.com/zh-tw/aspnet/core/client-side/bundling-and-minification?view=aspnetcore-3.0&tabs=visual-studio
https://www.davidhayden.me/blog/asp-net-core-bundle-and-minify-css-and-js
https://blog.johnwu.cc/article/ironman-day05-asp-net-core-static-files.html
https://stackoverflow.com/questions/54970400/wwwroot-folder-in-asp-net-core-2-2
# can test
https://github.com/dotnet/cli/issues/1396
#
https://medium.com/@scottkuhl/updating-your-javascript-libraries-in-asp-net-core-2-2-3c2d985a491e
# msbuild
https://docs.microsoft.com/zh-tw/visualstudio/msbuild/msbuild-concepts?view=vs-2019
https://docs.microsoft.com/zh-tw/visualstudio/msbuild/itemgroup-element-msbuild?view=vs-2019
https://stackoverflow.com/questions/49573010/dotnet-publish-include-extra-files
# urls
https://blog.darkthread.net/blog/set-kestrel-port/
################################
## Learn more
#################################
1. Books
2. Middle ware 1
3. Top project
1
4. Learning
1 C#
5. Sample
to-do-list
6. localtion
https://github.com/damienbod/AspNetCoreLocalization
7. dotnoet core cookie with outside
1 2
8. dotnet core static class with log
1
2019年11月6日 星期三
docker program
# simple the envim
bigred@CVN80:~/wk/spk$ docker run --rm -e my_name="andy" -it alpine/ # ls
bin etc lib mnt proc run srv tmp var
dev home media opt root sbin sys usr
/ # set
HISTFILE='/root/.ash_history'
HOME='/root'
HOSTNAME='815aa067de89'
IFS='
'
LINENO=''
OPTIND='1'
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
PPID='0'
PS1='\w \$ '
PS2='> '
PS4='+ '
PWD='/'
SHLVL='1'
TERM='xterm'
_='ls'
#
#
https://docs.docker.com/develop/develop-images/baseimages/
https://hub.docker.com/_/scratch
https://alpinelinux.org/
https://flykof.pixnet.net/blog/post/22995832-ubunto%E4%B8%8B%E5%AE%89%E8%A3%9Dbusybox
https://busybox.net/about.html
https://cizixs.com/2017/11/05/oci-and-runc/
https://www.tutorialspoint.com/unix_commands/nc.htm
# compose
https://titangene.github.io/article/networking-in-docker-compose.html
https://ithelp.ithome.com.tw/articles/10206437
https://docs.docker.com/compose/compose-file/compose-versioning/
https://medium.com/@VisonLi/docker-%E5%85%A5%E9%96%80-%E7%AD%86%E8%A8%98-part-2-91e4dfa2b365
# network
https://k2r2bai.com/2016/01/05/container/docker-network/
https://godleon.github.io/blog/Docker/docker-network-overview/
2019年11月4日 星期一
HAPorxy Install for mysql
PART1 Install the ha pxoy
simple
https://www.haproxy.com/blog/hitless-reloads-with-haproxy-howto/https://galeracluster.com/library/documentation/ha-proxy.html
https://computingforgeeks.com/galera-cluster-high-availability-with-haproxy-on-ubuntu-18-04-centos-7/
http://benjr.tw/95644
http://random168.blogspot.com/2018/11/linux-haproxy-mariadbmysql.html
https://iter01.com/59486.html
scl
https://pario.no/2018/07/17/install-haproxy-1-8-on-centos-7/large
https://www.fromdual.com/making-haproxy-high-available-for-mysql-galera-clusterhttps://www.jonespaulr.net/ha-mariadbgalera-cluster-w-haproxy-and-keepalived.html
Part2 install the haproxy log
https://ruilung-notes.blogspot.com/2016/12/haproxylog.html
https://ops.tips/gists/haproxy-docker-container-logs/
part3 install the view
https://www.datadoghq.com/blog/how-to-collect-haproxy-metrics/
https://www.haproxy.com/blog/dynamic-configuration-haproxy-runtime-api/
REF document
ch:
https://www.cnblogs.com/dkblog/archive/2012/03/13/2393321.htmlen
https://www.haproxy.org/download/1.4/doc/configuration.txthttps://www.haproxy.com/blog/the-four-essential-sections-of-an-haproxy-configuration/
https://stackshare.io/stackups/haproxy-vs-keepalived
https://codertw.com/%E4%BC%BA%E6%9C%8D%E5%99%A8/382202/
https://ssorc.tw/5937
strange parameter
https://stackoverflow.com/questions/34840176/when-to-use-httpclose-or-http-server-close-in-haproxyhttps://ops.tips/gists/making-haproxy-respond-200ok-to-health-checks/
http://wsfdl.com/openstack/2014/12/24/Haproxy%E4%B8%8EOpenStack-API%E5%AE%89%E5%85%A8.html
訂閱:
文章 (Atom)