it was a configuration issue,
I just needed to set provide the port fusionauth was running
Best posts made by duke
-
RE: Deploy FusionAuth docker image to Fly.io
-
RE: Deploy FusionAuth docker image to Fly.io
@dan i didnt actually fix it, i just remove it and connect through the form
-
RE: UpdatinG User with JSON-PATCH method
@dan It was abit confusing because looking at the original body of the
group
, there was no parameter/ field calledroleIds
but it was used in the request.To update the User we used this.
// To remove language let body = vec![Testing { op: "remove".to_string(), path: "/user/preferredLanguages/0".to_string() }];
Latest posts made by duke
-
RE: UpdatinG User with JSON-PATCH method
@dan It was abit confusing because looking at the original body of the
group
, there was no parameter/ field calledroleIds
but it was used in the request.To update the User we used this.
// To remove language let body = vec![Testing { op: "remove".to_string(), path: "/user/preferredLanguages/0".to_string() }];
-
UpdatinG User with JSON-PATCH method
Hey, we are using
User
API to update userPerferredLanguage
. Currently we have two languages and we want to change email template based on that user language.We want to have just one language at any given time so want to update the User
PerferredLanguage
using Json-patch method.User{ PerferredLanguage: [ "English"] }
when using
json-patch
https://fusionauth.io/docs/v1/tech/apis/#the-patch-http-method it seems like am not getting the path right. Looking at the example provide i cant why the request body from the example become[ { "op": "remove", "path": "/roleIds/1" } ]
How do we resolve to the
path
to become"path": "/roleIds/1"
?
or in my case, how would the body be ?Thanks
-
RE: Deploy FusionAuth docker image to Fly.io
@dan i didnt actually fix it, i just remove it and connect through the form
-
RE: Deploy FusionAuth docker image to Fly.io
@dan Nice to finding the other forum.
Another thing is that when some create
Postgres app
(on fly.io, am not sure for other)
TheDATABASE_URL
is like thispostgres://the_name:LtMvptwX@top2.nearest.of.host_name-db.internal:5432/db_name
If you set this url to FusionAuth DATABASE_URL it will get an error saying
2022-08-26 09:16:21.106 AM ERROR com.inversoft.maintenance.db.JDBCMaintenanceModeDatabaseService - Configuration [database.url] is invalid. It must begin with either jdbc:mysql: or jdbc:postgresql: 2022-08-26 09:16:21.113 AM ERROR com.inversoft.maintenance.db.JDBCURL - Could not parse jdbcString [postgres://the_name:LtMvptwzd02JeQX@top2.nearest.of.host_name-db.internal:5432/db_name]. java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 at com.inversoft.maintenance.db.JDBCURL.create(JDBCURL.java:70)
-
RE: Deploy FusionAuth docker image to Fly.io
it was a configuration issue,
I just needed to set provide the port fusionauth was running -
Deploy FusionAuth docker image to Fly.io
Hey, i docker image that was build upon
FusionAuth
docker image.The image works fine when i did
docker run ...
i can visit the app.I have deployed the image to to https://fly.io/ . from the logs the app running fine but when i tried visiting the url assign to the app nothing is loading.
Am not sure if i need to setup reverse proxy.Any suggestion on how to fix this ?
Dockerfile:
FROM fusionauth/fusionauth-app:latest as build FROM debian:buster-slim RUN apt-get update && apt-get install -y \ curl \ ca-certificates \ --no-install-recommends RUN groupadd fusionauth RUN useradd -r -s /bin/sh -g fusionauth -u 1001 fusionauth COPY --chown=fusionauth:fusionauth --from=build /usr/local/fusionauth /usr/local/fusionauth EXPOSE 9011 CMD ["/usr/local/fusionauth/fusionauth-app/bin/start.sh"]
-
FusionAuth with Fly.io
Hey, Am trying to deploy fusionauth to fly.io using docker image.
I have been going through and trying different method to build and deploy docker the image but no lock yet.
I tried building the docker image from as mention https://fusionauth.io/download with docker option.
For this test my dockerFile wasFROM debian:buster-slim RUN apt-get update && apt-get install -y \ curl \ ca-certificates RUN curl -o docker-compose.yml https://raw.githubusercontent.com/FusionAuth/fusionauth-containers/master/docker/fusionauth/docker-compose.yml && curl -o .env https://raw.githubusercontent.com/FusionAuth/fusionauth-containers/master/docker/fusionauth/.env && docker-compose up
Step 8/13 : RUN sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh -s - -z" ---> Running in e3ad682f1af2 sh: 64: [[: not found Illegal option -z FusionAuth FastPath(tm) installer Usage: ./install.sh [options] OPTIONS: -s Include the search engine with this install. Defaults to database search if this is not present. -h Display this message. Environment: TARGET_DIR Choose a location to install to if using the zip. Defaults to $PWD/fusionauth. VERSION Choose a version to install. Defaults to the latest stable version. The command '/bin/sh -c sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh -s - -z"' returned a non-zero code: 1
I also tried using the docker-compose as mentioned https://fusionauth.io/docs/v1/tech/installation-guide/docker just to mention Fly.oi only support docker image and we already have postgres deployed.
My
docker-compose.yml
looksversion: '3' services: fusionauth: image: fusionauth/fusionauth-app:latest restart: unless-stopped ports: - 9011:9011 volumes: - fa_config:/usr/local/fusionauth/config volumes: db_data: fa_config:
I have also tried as shown below but am not sure the entry point or the path to run the app from the
FusionAuth
docker image.the
dockerfile
FROM fusionauth/fusionauth-app:latest FROM debian:buster-slim RUN apt-get update && apt-get install -y \ --no-install-recommends RUN groupadd -g 999 appuser && \ useradd -r -u 999 -g appuser appuser WORKDIR /fusionauth RUN chown appuser /fusion_auth USER appuser COPY . . CMD ["what should be here ? "]
So my question is how to deploy
Fusionauth
app using docker image?