clone is used in git to copy a project into your machine as a git project and do you works on it. Sometime a project (specially front projects) are so heavy and has lots of history which makes cloning to takes an hour or more (depending on the depth and the size of the repo).The solution is
--depth, with --depth you can specify how shallow a clone could be and how much commit of the past should be brought into your system. So for example you can clone like this:git clone myhost:frontier/web.git --depth=1It will copy the whole project
BUT it just copies the last commit on the tip of the current branch in your server (most likely master) which is the default behaviour of git that set --single-branch. So if you checkout to dev you wont see your last changesin
dev branch. In case you want to shallow copy the whole project and retrieve the lat commit on the tip of all remote branches just use --no-single-branch.So finally we can:
git clone myhost:frontier/web.git --depth=1 --no-single-branch
Now if you change your branch (checkout) to
dev, you will see that recent changes of the dev branch on the remote repo server is present in your system.to see the last commit ids that you have in your system, open
YOUR_PROJECT/.git/shallow file and see the content of the file. Mine is as below:8252b87c82b4be7b7b4edaa12f2168ff165fc7af #refers to my master last commit id
d50bdeeecc595e86818c68d734613542206bf972 #refers to my dev last commit id
#git #branch #no-single-branch #single-branch #depth #clone
Kill zombie tasks in
1-
2- At the host the container running in, look up the
3-
It sweeps entries of the zombie tasks from swarm. Happy deploying! :)
#docker #swarm #zombie #no_trunk #shim
docker swarm using steps below:1-
docker ps --no-trunc to find the zombie container id.2- At the host the container running in, look up the
PID of a docker-containerd-shim process by ps aux | grep <container id>3-
kill <PID>It sweeps entries of the zombie tasks from swarm. Happy deploying! :)
#docker #swarm #zombie #no_trunk #shim
https://ux.stackexchange.com/questions/123222/when-your-page-has-no-results-what-do-you-show
#ux #no_result #action_button
#ux #no_result #action_button
User Experience Stack Exchange
When your page has no results, what do you show?
I am paginating a data table and have different views in my application where each view has its own rows. Some views may have data, some may not
Showing 1-0 of 0 Page 1 of 0
is what I am showing o...
Showing 1-0 of 0 Page 1 of 0
is what I am showing o...
In
you want to install network tools (like ping) you need to install
You can squash your image size even further by some tips. When you install a package, linux distros first download the package and put it in a cache folder. In
To tell the OS to delete the cache after installation you can provide
There are some package like
y using
Great job guys! You have reduced your alpine docker images so much :)
#docker #linux #alpine #apk #virtual #no_cache #apk_del #apk_add
Dockerfile`s some people in the community use `alpine base image in order to reduce docker image size. apk is its package management tool that can be used to install OS packages. So for example ifyou want to install network tools (like ping) you need to install
netcat-openbsd:apk add netcat-openbsd
You can squash your image size even further by some tips. When you install a package, linux distros first download the package and put it in a cache folder. In
Alpine it is located in /var/cache/apk.To tell the OS to delete the cache after installation you can provide
--no-cache option to it:apk add --no-cache netcat-openbsd
There are some package like
g++ or git that is needed on installation of some other packages. After installation those packages is useless and just increase image size. You can remove those packages by using
--virtual command:apk add --no-cache --virtual .build-deps g++ \
&& # do you stuff here \
&& apk del .build-deps
Great job guys! You have reduced your alpine docker images so much :)
#docker #linux #alpine #apk #virtual #no_cache #apk_del #apk_add