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>
@JulienBreux JulienBreux added the enhancement New feature or request label Sep 24, 2021
@JulienBreux JulienBreux self-assigned this Sep 24, 2021
Comment thread locmapper/action.yml Outdated
Comment thread locmapper/Dockerfile Outdated
JulienBreux and 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 thread locmapper/action.yml
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.command }}

@DevHugo DevHugo Sep 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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants