No video

033 Introduction to Docker and Gitlab Registry PART (2/2)

  Рет қаралды 12,075

Dan Gitschooldude

Dan Gitschooldude

Күн бұрын

If you didn't see part 1 of this video, you might be lost, check it out: • 033 Introduction to Do...
In part 2 of this video, we authenticate with the Gitlab registry and push our image to our project namespace. Then, we adjust the .gitlab-ci.yml file so that our jobs execute inside our newly created docker container when they are run as part of Gitlab CI.
If you are looking for an effective concise introduction to Git, I highly recommend my "Fundamentals of Git" course on Udemy: www.udemy.com/...
If you or your company is interested in live virtual software and tools training, see www.continuous... for a list of training topics we offer.

Пікірлер: 17
@wernerlucas12
@wernerlucas12 5 жыл бұрын
Very explanatory! Thanks! Keep doing it! :D
@subramaniamramasubramanian877
@subramaniamramasubramanian877 5 жыл бұрын
Great videos. You said the password was saved but can you tell us how you configured that perhaps?
@derekreed6798
@derekreed6798 Жыл бұрын
Nice 2 vids
@masterull
@masterull 3 жыл бұрын
thanks! very useful
@munapadhi8723
@munapadhi8723 4 жыл бұрын
super cool video also your voice is amazing
@DanGitschooldude
@DanGitschooldude 4 жыл бұрын
Thanks buddy!
@coolplayer2512
@coolplayer2512 4 жыл бұрын
Subscribed instantly !!! Very well explained. Thanks. I m targeting to create CI CD for .net based applications.For it I have registered my VM(windows server 2019 image) as git lab runner for docker executer. So while registering git lab runner, provided a base image for winserver2019 to the runner. My all CI pipe line will execute in this base image container. I need to create another docker image with all .net build tools on top of winserver2109. Any idea that how i can achieve it . Is it docker in docker ,bit confused? Thanks.
@DanGitschooldude
@DanGitschooldude 4 жыл бұрын
Thanks for the sub! Sorry buddy but I've never messed with docker on windows nor have I ever created a windows gitlab runner. As far as I'm aware, docker can't create windows containers, it can only create linux containers, but can run those containers on a windows host. Is your testing platform windows or linux? If it's windows you might not want docker at all, just have a windows gitlab runner instead. Thanks for watching!
@coolplayer2512
@coolplayer2512 4 жыл бұрын
@@DanGitschooldude Thanks.Hyper-V enabled windows machine both type of containers . I m doing testing on windows. Yes we can work on window git lab runner as shell executor,but i m doing my testing with docker executor git lab runner which in my case is windows.So in my git lab runner config (config.toml) i m specifying the base image which git lab is using to create it work space.If possible please share make videos on docker executor git lab runner for windows. Thanks.
@desi97244
@desi97244 5 жыл бұрын
Good One, Thanks. How does any of this change if I am using gitlab-ce (self hosted)?
@DanGitschooldude
@DanGitschooldude 5 жыл бұрын
As far as I'm aware, there is no docker or registry capability withheld from Gitlab CE so there should be no difference between CE vs EE. It seems all Gitlab-CI-related capabilities are free, which is a smart move in my opinion. Thanks for watching! If you have any suggestions for future videos let me know.
@rimdebbech2124
@rimdebbech2124 4 жыл бұрын
Hello, Thank you. In case of a change in the project, and after pushing my code to the repository, how can I update the image without rebuilding it?
@DanGitschooldude
@DanGitschooldude 4 жыл бұрын
There's no way to update an image without building it locally and pushing to the docker registry as far as I'm aware. Thanks for watching!
@kjn5991
@kjn5991 3 жыл бұрын
Well, if you want to avoid rebuilding the image locally, then you can write the .gitlab-ci.yaml file in which you can specify scripts to login to the registry, building the image and push it to the registry. Something like this: --- stages: - build publish_docker_image: stage: build image: docker:stable services: - docker:stable-dind script: - docker login -u "Insert Docker ID here" -p $DOCKER_HUB_PASSWORD - docker build -t "Insert Docker ID here"/"name of your image":$CI_COMMIT_REF_SLUG . - docker push "Insert Docker ID here"/"name of your image":$CI_COMMIT_REF_SLUG The example above uses the pre-made docker:stable-dind image as a service for the scripts. The first script logins to Docker Hub in this case using the written username and a password which comes from a environment variable $DOCKER_HUB_PASSWORD (defined for the pipeline at the project's repository in Gitlab) The second script builds the image using the files in the current directory and tags the image with the username, image name and the $CI_COMMIT_REF_SLUG tag which is automatically given by Gitlab (usually this is the branch name you are working on). The third script pushes the built image to the Docker Hub repository. (of course, if you change the login part to "docker login registry.gitlab.com" then you would be pushing to Gitlab registry).
031 Gitlab CI's Vision: Artifacts, Workspaces, and Runners
23:09
Dan Gitschooldude
Рет қаралды 18 М.
028 Introduction to Gitlab CI
20:43
Dan Gitschooldude
Рет қаралды 46 М.
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 22 МЛН
Comfortable 🤣 #comedy #funny
00:34
Micky Makeover
Рет қаралды 17 МЛН
032 Introduction to Git Subtrees
20:43
Dan Gitschooldude
Рет қаралды 39 М.
008 Introduction to Git Submodules
26:52
Dan Gitschooldude
Рет қаралды 71 М.
037 Develop Software Inside a Docker Container
11:58
Dan Gitschooldude
Рет қаралды 10 М.
026 Introduction to Gitlab
21:16
Dan Gitschooldude
Рет қаралды 28 М.
009 More about git submodules
19:47
Dan Gitschooldude
Рет қаралды 13 М.
How This New Battery is Changing the Game
12:07
Undecided with Matt Ferrell
Рет қаралды 215 М.
Continuous Integration with GitLab CI
52:39
NERD Summit
Рет қаралды 115 М.
034 Avoid Multiple Cherry-Picks using Git Flow
17:09
Dan Gitschooldude
Рет қаралды 7 М.
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 22 МЛН