1
00:00:04,330 --> 00:00:04,790
All right.

2
00:00:04,820 --> 00:00:11,270
We have just pulled mold to image from Docker Hub and we have created for us to know the Jesus container.

3
00:00:11,570 --> 00:00:17,720
And we have basically executed some commands like console lock or assignment or developed to the variable

4
00:00:17,870 --> 00:00:23,180
inside of the interactive interpreter of node Jesus inside of the container.

5
00:00:23,220 --> 00:00:25,130
And now let's create the sample.

6
00:00:25,130 --> 00:00:31,010
Lord Jesus application as we did with Python and let's put it on our local computer and afterwards let's

7
00:00:31,010 --> 00:00:33,230
run it using Lord Jesus container.

8
00:00:33,650 --> 00:00:40,220
Let me clear terminal and the goal to visuals to decode and create here New Folder near folders and

9
00:00:40,220 --> 00:00:42,170
Jenny expire and so on.

10
00:00:42,170 --> 00:00:47,080
Let's close any related to previous projects files and healers.

11
00:00:47,090 --> 00:00:54,140
Create a new folder and let's name it a node like so and here inside of this folder let's create the

12
00:00:54,140 --> 00:00:55,620
new file simply.

13
00:00:55,640 --> 00:00:56,720
Hello Dot.

14
00:00:56,760 --> 00:00:58,190
Jesus like this.

15
00:00:58,190 --> 00:00:59,340
And he and this file.

16
00:00:59,370 --> 00:01:02,620
Let's simply type of console that log.

17
00:01:02,690 --> 00:01:09,560
This application was executed by node Jesus container.

18
00:01:09,800 --> 00:01:12,170
Like so let's save this.

19
00:01:12,230 --> 00:01:19,280
And also you're able to wrap along the lines using a combination of option Z like so and let me hide

20
00:01:19,280 --> 00:01:25,190
that this left pane and we are actually ready to go and we are ready to execute this tiny application

21
00:01:25,340 --> 00:01:26,750
inside of the single file.

22
00:01:26,750 --> 00:01:29,660
Hello de Jesus using Node container.

23
00:01:29,720 --> 00:01:30,750
Let's go to terminal.

24
00:01:30,750 --> 00:01:37,310
And of course you may guess that we need to use here volume mapping in order to map our volume on our

25
00:01:37,310 --> 00:01:42,150
local computer to specific folder inside of the container that we'll be running.

26
00:01:42,150 --> 00:01:43,130
Lord Jesus.

27
00:01:43,200 --> 00:01:46,420
Let's do so let's just Cydia to node folder.

28
00:01:46,430 --> 00:01:52,440
Because we will use the same as before variable be WD and that's why we need to be inside of the folder

29
00:01:52,550 --> 00:01:56,360
that has files that we need to map to contain them.

30
00:01:56,510 --> 00:01:58,530
Let's see the node and here let's.

31
00:01:58,580 --> 00:02:00,480
On container Docker.

32
00:02:00,870 --> 00:02:08,930
Run this VM We will use a volume making a dollar sign be double your next column and bless my but this

33
00:02:08,930 --> 00:02:11,390
local folder to up folder.

34
00:02:11,390 --> 00:02:16,820
Same as we did in Python application and of course let's specify here working direct or inside or the

35
00:02:17,000 --> 00:02:22,720
node container using DSW option and yell its type slash up like so.

36
00:02:22,820 --> 00:02:29,450
And next comes node it is the name of the image that we will use for creation of this container and

37
00:02:29,510 --> 00:02:35,900
afterwards let's override default command that is actually node command using Node plus name of the

38
00:02:35,900 --> 00:02:39,360
file that we want to execute inside of the container.

39
00:02:39,440 --> 00:02:46,140
And for that let's simply type node and next comes name of the file and name of our file is Hello de

40
00:02:46,150 --> 00:02:46,900
Jesus.

41
00:02:47,030 --> 00:02:49,260
Let's hear type Hello de Jesus.

42
00:02:49,400 --> 00:02:55,070
And please note that here with command that will be executed upon a creation of the container.

43
00:02:55,190 --> 00:02:57,350
Here is name of the image.

44
00:02:57,350 --> 00:02:57,810
Great.

45
00:02:57,890 --> 00:03:00,080
Let's press enter and see what will happen.

46
00:03:01,920 --> 00:03:03,000
And I result.

47
00:03:03,000 --> 00:03:06,700
This application was executed by node Jesus container.

48
00:03:06,700 --> 00:03:08,670
And that means that our script.

49
00:03:08,670 --> 00:03:16,770
Hello de Jesus was successfully executed by node Jesus container but after execution of the script process

50
00:03:16,920 --> 00:03:22,830
North process was terminated and container was stopped we could verify it as usually using Docker.

51
00:03:22,830 --> 00:03:23,880
The US command.

52
00:03:23,940 --> 00:03:26,190
There are no containers at the moment.

53
00:03:26,190 --> 00:03:31,840
That's how you are able to run a very simple application using Node GSK container.

54
00:03:32,070 --> 00:03:38,070
And notice that we were not required to create or Batman because this application doesn't require any

55
00:03:38,160 --> 00:03:44,550
external ports but if you create the any for example API using more geos then you'll probably need to

56
00:03:44,550 --> 00:03:50,940
open some ports in order to access the end points API endpoints from external clients.

57
00:03:50,940 --> 00:03:51,490
Great.

58
00:03:51,540 --> 00:03:54,820
That's how we're able to run very simple application is.

59
00:03:55,080 --> 00:04:01,650
But please note that things may become more complicated if you want to install some additional dependencies

60
00:04:01,920 --> 00:04:03,320
using NPM.

61
00:04:03,420 --> 00:04:09,780
Let's try to create a bit more complicated more geo application that will require some additional NPM

62
00:04:09,790 --> 00:04:10,640
modules.

63
00:04:10,680 --> 00:04:11,580
Let's do that next.

64
00:04:11,620 --> 00:04:12,010
My main.

