fix(juju): honor juju changes in descriptor
[osm/osmclient.git] / snap / local / README.md
1 ##
2 # Copyright 2020 ETSI
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License"); you may
5 # not use this file except in compliance with the License. You may obtain
6 # a copy of the License at
7 #
8 #         http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 # License for the specific language governing permissions and limitations
14 # under the License.
15 ##
16
17 # Snap for OSM client
18
19 The snapcraft.yaml located in this folder, allows to build a snap of the OSM client
20
21
22 # Build the Snap
23
24 ```bash
25 docker run -v ${PWD}:/build -w /build snapcore/snapcraft:stable /bin/bash -c "apt update && snapcraft"
26 ```
27
28
29 ## Working on build steps
30
31 As the build can take upwards of 4 minutes, it might be easier to enter the docker
32 container and perform iterative builds there.
33
34 ```bash
35 docker run -v ${PWD}:/build -w /build snapcore/snapcraft:stable /bin/bash -c /bin/bash
36 apt update
37 snapcraft
38 ```
39
40
41 ## Install
42
43 ```bash
44 $ sudo snap install --devmode osmclient_v7.1.0+git4.a4af86f-dirty_amd64.snap
45 osmclient v7.1.0+git4.a4af86f-dirty installed
46 $ sudo snap alias osmclient.osm osm
47 ```