Skip to content
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

Modification custom logo #1331

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

bpeytraud
Copy link
Contributor

In this modification the objective is to be more precise on the PNG part. I made two parts, one for the tuleap server and one for the docker. It’s more useful to do this than to have generic information on the PNG part. I explain in details how to add the two PNG files in the tuleap server and in the docker. I think it’s important to be clear on those points to facilitate the user in his attempt to have a new logo on his page.

In this modification the objective is to be more precise on the PNG part.
I made two parts, one for the tuleap server and one for the docker. It’s more useful to do this than to have generic information on the PNG part.
I explain in details how to add the two PNG files in the tuleap server and in the docker.
I think it’s important to be clear on those points to facilitate the user in his attempt to have a new logo on his page.
Comment on lines 172 to 182
``docker run -v directory_files/:name_of_directory -v name_volume:/tuleap-data -t -i alpine sh``

* directory_files : it’s corresponding of where you put your two logos in your host.
* name_of_directory : it’s the name of your directory in your container. You can put what you want.
* name_volume : it’s the name of your volume that you are using for this modification. You can check all your volumes name with : ``docker volume ls``
* alpine : we decide to put alpine because it’s a light image but you can choose an another one.
* sh : it’s launching a bash environment.

Now you are going to remove the two existing logos in ``/tuleap-data/var/lib/tuleap/images``

When this is done you can go exit the bash environment.
Copy link
Member

Choose a reason for hiding this comment

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

  1. It should work with only one step if you use cp -f in the command bellow (that will override the target file)
  2. I suggest that, instead of name_of_directory, you enfore ce name, for instance /pictures, this way, it's easy for admin to copy/paste, it's one less thing to change
  3. You don't need to to precise what alpine is

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I understand your point. I will do one command, but in other hand I will precise what the command does.


And now you are going to copy your two png files between your host and the tuleap docker.

``docker run -v directory_files/:name_of_directory -v name_volume:/tuleap-data -t -i cp name_of_directory/organization_logo.png /tuleap-data/var/lib/tuleap/images``
Copy link
Member

Choose a reason for hiding this comment

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

  1. Please add --rm to docker run arguments, you don't need to keep the container used for cp
  2. you don't need -t and -i here because there is no interactions
  3. I would suggest to copy using organisation_logo*.png so it copies all the files at once

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The review above is a part of this review.


Do the same for ``organization_logo_small.png``

Now you can start docker with : ``docker compose up -d``
Copy link
Member

Choose a reason for hiding this comment

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

A restart of web container should be enough

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, for sure it will be faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants