forked from git-bug/git-bug
-
Notifications
You must be signed in to change notification settings - Fork 0
WIP: Improve ls command #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
GlancingMind
wants to merge
8
commits into
master
Choose a base branch
from
improve-ls-command
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add .gitattributes Using .gitattributes to normalize line endings for this project. Developers might set the core.autocrlf option in their respective git-config to treat line endings properly. But if forgotten, different line endings could be introduced to a file, which possible leads to unexpected behaviour. With this settings, git should try to set the proper line endings for files on each commit or checkout. Add .editorconfig This should set some sane defaults for some file in this project. E.g. ensure that editors use tab for indention in Makefiles.
'--host'-cmdline-option is added to the webui command. Previously, the WebUI couldn't be hosted inside of a container. As the WebUI-server only listend per default to localhost and there was no option to change the address, the server should listend to. This means, that the WebUI was only reachable from localhost. So only from inside of the container but never from outside. The '--host'-option allows to set the IP address or a hostname which the WebUI-server should listen to. E.g. by setting 0.0.0.0 or :: as address. Update documentation for new option. Update shell completion for new option.
The Dockerfile specifies a container image, which only contains the git-bug statically compiled binary and a preconfigured issue-repository. - Statical compilation is required to run the git-bug binary on the scratch image, which reduces the size of the final container image. - The included issue-repository allows the user of the image to try git-bug without the initial setup of a git repository and a git-bug idenentity. The final container image will use the ca-certificates of the golang image. This certificates are required to pull or push issues to/from configured git-bug bridges. Update installation and usage instructions for container image. Also add a container image build status badge to README.
This commit introduces a docker-compose file to reduce the setup for the webui development. The compose-file defines two containers. One for the GraphQL-backend and another nodejs container for the development webui (dev-webui). With this, it is no longer required to install go for compiling the git-bug binary to start the dev-webui. A developer is only required to have docker-compose installed to spin up the webui in development mode with one command. To support running the dev-webui inside a container, the proxy of the dev-webui has to communicate with the backend-container instance. Before this commit, the proxy listend to localhost, which prevented it from communicating with the backend-container. Changing the proxy URL to the backend-container IP or name, would be fragile and certainly break the dev-webui for developers not using docker-compose. So to support docker-compose gracefully, an environmental variable is introduced which per default points to the address of localhost and can be overwritten by docker-compose to the backend-container instance. As the proxy setting in package.json doesn't allow to retrieve it's value from environmental variables, it has to be replaced by a more capable solution - setupProxy.js. NOTE: It would have been also possible to use the host-networkmode in docker-compose. But platforms, which don't run containers natively, might require additional steps to work. The hosts node_modules directory is ignored and not mapped into the webui-container. Instead the webui-container will download the node_modules itself into a container-volume. This prevents the usage of host dependent node_modules and should make the development environment more reproducable. The git-bug keyring directory is persistet via a container volume. Furthermore by setting the KEYRING environmental variable in the .env-file, a directory can be mounted to persist tokens at the container-host or provide already persisted tokens from the host to the container. Below are some additional files (changes): - Add .env file to set the issue-repository for the GraphQL-backend service without changing the docker-compose.yml file. - Reduce download size for docker build, by reducing npm install invokations through better cache use.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.