You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repo contains the scripts used to create a FogLAMP package.
10
+
This repo contains the scripts used to create a Fledge package.
11
11
12
12
We have separated the package build from the `main repository`_ in order to provide a more flexible packaging and to maintain the smallest possible footprint of the main project, even in terms of source code and development.
13
13
@@ -37,7 +37,7 @@ The make_deb Script
37
37
38
38
$ ./make_deb help
39
39
make_deb [help|clean|cleanall]
40
-
This script is used to create the Debian package of FogLAMP
40
+
This script is used to create the Debian package of Fledge
41
41
Arguments:
42
42
help - Display this help text
43
43
clean - Remove all the old versions saved in format .XXXX
@@ -58,22 +58,22 @@ The make_deb Script
58
58
Building a Debian Package
59
59
=========================
60
60
61
-
First, make sure that FogLAMP is properly installed via ``make install`` somewhere on your environment (default is */usr/local/foglamp*).
61
+
First, make sure that Fledge is properly installed via ``make install`` somewhere on your environment (default is */usr/local/fledge*).
62
62
Finally, run the ``make_deb`` command and it will make as per ``arch``:
63
63
64
64
.. code-block:: console
65
65
66
66
$ ./make_deb
67
-
The package root directory is : /home/foglamp/foglamp-pkg
68
-
The FogLAMP directory is : /usr/local/foglamp
69
-
The FogLAMP version is : 1.6.0
70
-
The package will be built in : /home/foglamp/foglamp-pkg/packages/Debian/build/x86_64
67
+
The package root directory is : /home/fledge/fledge-pkg
68
+
The Fledge directory is : /usr/local/fledge
69
+
The Fledge version is : 1.6.0
70
+
The package will be built in : /home/fledge/fledge-pkg/packages/Debian/build/x86_64
71
71
The architecture is set as : x86_64
72
-
The package name is : foglamp-1.6.0-x86_64
72
+
The package name is : fledge-1.6.0-x86_64
73
73
74
74
Populating the package...Done.
75
75
Building the new package...
76
-
dpkg-deb: building package 'foglamp' in 'foglamp-1.6.0-x86_64.deb'.
76
+
dpkg-deb: building package 'fledge' in 'fledge-1.6.0-x86_64.deb'.
77
77
Building Complete.
78
78
$
79
79
@@ -83,35 +83,35 @@ The result will be:
83
83
84
84
$ ls -l packages/Debian/build/x86_64
85
85
total 564
86
-
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:35 foglamp-1.6.0-x86_64
87
-
-rw-r--r-- 1 foglamp foglamp 572742 Mar 23 17:35 foglamp-1.6.0-x86_64.deb
86
+
drwxrwxr-x 4 fledge fledge 4096 Mar 23 17:35 fledge-1.6.0-x86_64
87
+
-rw-r--r-- 1 fledge fledge 572742 Mar 23 17:35 fledge-1.6.0-x86_64.deb
88
88
$
89
89
90
90
If you execute the ``make_deb`` command again, you will see:
91
91
92
92
.. code-block:: console
93
93
94
94
$ ./make_deb
95
-
The package root directory is : /home/foglamp/foglamp-pkg
96
-
The FogLAMP directory is : /usr/local/foglamp
97
-
The FogLAMP version is : 1.6.0
98
-
The package will be built in : /home/foglamp/foglamp-pkg/packages/Debian/build/x86_64
95
+
The package root directory is : /home/fledge/fledge-pkg
96
+
The Fledge directory is : /usr/local/fledge
97
+
The Fledge version is : 1.6.0
98
+
The package will be built in : /home/fledge/fledge-pkg/packages/Debian/build/x86_64
99
99
The architecture is set as : x86_64
100
-
The package name is : foglamp-1.6.0-x86_64
100
+
The package name is : fledge-1.6.0-x86_64
101
101
102
-
Saving the old working environment as foglamp-1.6.0-x86_64.0001
102
+
Saving the old working environment as fledge-1.6.0-x86_64.0001
103
103
Populating the package...Done.
104
-
Saving the old package as foglamp-1.6.0-x86_64.deb.0001
104
+
Saving the old package as fledge-1.6.0-x86_64.deb.0001
105
105
Building the new package...
106
-
dpkg-deb: building package 'foglamp' in 'foglamp-1.6.0-x86_64.deb'.
106
+
dpkg-deb: building package 'fledge' in 'fledge-1.6.0-x86_64.deb'.
107
107
Building Complete.
108
108
$
109
109
$ ls -l packages/Debian/build/x86_64
110
110
total 1128
111
-
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:53 foglamp-1.6.0-x86_64
112
-
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:35 foglamp-1.6.0-x86_64.0001
113
-
-rw-r--r-- 1 foglamp foglamp 573080 Mar 23 17:54 foglamp-1.6.0-x86_64.deb
114
-
-rw-r--r-- 1 foglamp foglamp 572742 Mar 23 17:35 foglamp-1.6.0-x86_64.deb.0001
111
+
drwxrwxr-x 4 fledge fledge 4096 Mar 23 17:53 fledge-1.6.0-x86_64
112
+
drwxrwxr-x 4 fledge fledge 4096 Mar 23 17:35 fledge-1.6.0-x86_64.0001
113
+
-rw-r--r-- 1 fledge fledge 573080 Mar 23 17:54 fledge-1.6.0-x86_64.deb
114
+
-rw-r--r-- 1 fledge fledge 572742 Mar 23 17:35 fledge-1.6.0-x86_64.deb.0001
115
115
$
116
116
117
117
... where the previous build is now marked with the suffix *.0001*.
@@ -123,7 +123,7 @@ The make_rpm Script
123
123
124
124
$ ./make_rpm --help
125
125
make_rpm help [clean|cleanall]
126
-
This script is used to create the RPM package of FogLAMP
126
+
This script is used to create the RPM package of Fledge
127
127
Arguments:
128
128
help - Display this help text
129
129
clean - Remove all the old versions saved in format .XXXX
@@ -133,33 +133,33 @@ The make_rpm Script
133
133
Building a RPM Package
134
134
======================
135
135
136
-
First, make sure that FogLAMP is properly installed via ``make install`` somewhere on your environment (default is */usr/local/foglamp*).
136
+
First, make sure that Fledge is properly installed via ``make install`` somewhere on your environment (default is */usr/local/fledge*).
137
137
Next, *x86* is the only currently supported architecture for RedHat/Centos.
138
138
Finally, run the ``make_rpm`` command:
139
139
140
140
.. code-block:: console
141
141
142
142
$ ./make_rpm
143
-
The package root directory is : /home/foglamp/repos/foglamp-pkg
144
-
The FogLAMP directory is : /home/foglamp/foglamp
145
-
The FogLAMP version is : 1.5.2
146
-
The package will be built in : /home/foglamp/repos/foglamp-pkg/packages/rpmbuild/RPMS/x86_64
147
-
The package name is : foglamp-1.5.2-1.x86_64
143
+
The package root directory is : /home/fledge/repos/fledge-pkg
144
+
The Fledge directory is : /home/fledge/fledge
145
+
The Fledge version is : 1.5.2
146
+
The package will be built in : /home/fledge/repos/fledge-pkg/packages/rpmbuild/RPMS/x86_64
147
+
The package name is : fledge-1.5.2-1.x86_64
148
148
149
-
Saving the old working environment as foglamp-1.5.2-1.x86_64.0077
149
+
Saving the old working environment as fledge-1.5.2-1.x86_64.0077
150
150
Populating the package and updating version in control file...Done.
151
151
Prepare data directory
152
-
Saving the old package as foglamp-1.5.2-1.x86_64.rpm.0001
152
+
Saving the old package as fledge-1.5.2-1.x86_64.rpm.0001
-v : maps host volume /foglamp-data to container volume /usr/local/foglamp/data
39
-
--name : name of the container (foglamp)
37
+
-d : run fledge container in detached mode
38
+
-v : maps host volume /fledge-data to container volume /usr/local/fledge/data
39
+
--name : name of the container (fledge)
40
40
-p : map the port of host machine (8081) and container (:8081)
41
-
foglamp : name of the image created in earlier step
41
+
fledge : name of the image created in earlier step
42
42
43
-
> To attach to a running conatiner: `docker exec -it foglamp bash`
43
+
> To attach to a running conatiner: `docker exec -it fledge bash`
44
44
45
45
46
46
### Stopping docker container
47
47
```
48
-
$ docker stop foglamp
48
+
$ docker stop fledge
49
49
```
50
50
51
-
> Note: The files in foglamp-data directory are created by container which creates/runs them as root user. In order to read the foglamp.db, you need to change the permission of foglamp.db* files, sudo chmod 666 foglamp.db*
51
+
> Note: The files in fledge-data directory are created by container which creates/runs them as root user. In order to read the fledge.db, you need to change the permission of fledge.db* files, sudo chmod 666 fledge.db*
0 commit comments