Skip to content

Add LocMapper action - #14

Open
JulienBreux wants to merge 3 commits into
masterfrom
feat/add-locmapper
Open

Add LocMapper action#14
JulienBreux wants to merge 3 commits into
masterfrom
feat/add-locmapper

Conversation

@JulienBreux

Copy link
Copy Markdown

Description

Add missing custom LocMapper tool action.

Reviewers note

Important to understand that in a very first time, we just pass one input "command".
In the future, it's better to split in relation of the tools commands, sub-commands and arguments.

Signed-off-by: Julien Breux <julien.breux@happn.fr>
@JulienBreuxJulienBreux added the enhancement New feature or request label Sep 24, 2021
@JulienBreuxJulienBreux self-assigned this Sep 24, 2021
Comment threadlocmapper/action.yml Outdated
Comment threadlocmapper/Dockerfile Outdated
JulienBreuxand others added 2 commits September 24, 2021 16:20
Co-authored-by: Hugo Courtecuisse <DevHugo@users.noreply.github.com>
Co-authored-by: Hugo Courtecuisse <DevHugo@users.noreply.github.com>
Comment threadlocmapper/action.yml
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.command }}

@DevHugoDevHugoSep 27, 2021

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ags are passed on entrypoints.sh argument. See the docs: https://github.com/happn-tech/LocMapper/blob/main/Dockerfile#L49 .

I think it needed to create an entrypoint.sh file. Somethink like in the Dockerfile :

USER root
ADD entrypoint.sh .
RUN chmod +x entrypoint.sh && chown locmapper entrypoint.sh
ENTRYPOINT ["/locmapper/entrypoint.sh"]

and entrypoint.sh :

#!/bin/sh
locmapper $1

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@JulienBreux@DevHugo