Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

DSR-1416: Fix to create VERSION file and handle docker build from command line #48

Merged
merged 4 commits into from
Oct 1, 2020

Conversation

BinduRao2018
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • [] Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

In the current version, the VERSION file required by dockerfile isn't generated properly. This results in failure during initialization when the device service is started
Issue Number:

What is the new behavior?

Updated Makefile to generate VERSION file, to use it in Dockerfile to build docker images locally.

Does this PR introduce a breaking change?

  • Yes
  • No

Are there any new imports or modules? If so, what are they used for and why?

-NA-

Are there any specific instructions or things that should be known prior to reviewing?

No

Other information

Signed-off-by: br <bindu@iotechsys.com>
Signed-off-by: br <bindu@iotechsys.com>
README.md Outdated
@@ -19,6 +19,7 @@ The repository can be found on git at [libmraa](https://github.com/intel-iot-dev
2. Build a docker image by using the following command
```
sh> cd device-grove-c
sh> make version
sh> docker build . -t < device-grove-c > -f ./scripts/Dockerfile.alpine-3.11
Copy link
Member

@iain-anderson iain-anderson Oct 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the docker build line not read simply
sh> docker build . -t device-grove-c -f ./scripts/Dockerfile.alpine-3.11

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<> - This is to indicate the image name can be anything and not fixed to device-grove-c. I can remove if it is not clear.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please, maybe just say underneath "replacing device-grove-c with your preferred image name if necessary" or something

Signed-off-by: br <bindu@iotechsys.com>
Copy link
Member

@iain-anderson iain-anderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iain-anderson iain-anderson merged commit aec73d9 into master Oct 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants