nfs-ganesha service Dockerfile
liuskyter
5 Posts
December 8, 2022, 10:58 amQuote from liuskyter on December 8, 2022, 10:58 amI want to learn more ablout nfs-ganesha service with docker, could you provide me the Dockerfile of nfs-ganesha?
I want to learn more ablout nfs-ganesha service with docker, could you provide me the Dockerfile of nfs-ganesha?
liuskyter
5 Posts
December 8, 2022, 11:00 amQuote from liuskyter on December 8, 2022, 11:00 amBy the way, it's not docker, it's podman.Thank you
By the way, it's not docker, it's podman.Thank you
admin
2,930 Posts
December 8, 2022, 11:29 amQuote from admin on December 8, 2022, 11:29 amDo you want to know more how we package the container image using Dokerfile, or do you need info on the operation of the service itself and setting up active/active NFS ?
Do you want to know more how we package the container image using Dokerfile, or do you need info on the operation of the service itself and setting up active/active NFS ?
Last edited on December 8, 2022, 11:30 am by admin · #3
liuskyter
5 Posts
December 8, 2022, 11:46 amQuote from liuskyter on December 8, 2022, 11:46 amThanks for your quick reply!
As you said, I want to learn more about "how you package the container image using Dokerfile". Could you provide me the Dockerfile and I want to learn more and make a docker image about nfs-ganesha by myself!
Thank you!
Thanks for your quick reply!
As you said, I want to learn more about "how you package the container image using Dokerfile". Could you provide me the Dockerfile and I want to learn more and make a docker image about nfs-ganesha by myself!
Thank you!
admin
2,930 Posts
December 8, 2022, 12:28 pmQuote from admin on December 8, 2022, 12:28 pmThis is the Dokerfile
echo "FROM ubuntu:18.04
COPY image-root /
RUN apt-get update && \
dpkg -iR /root/debs; apt-get install -f -y --no-install-recommends; \
apt-get clean && \
rm -f /var/lib/apt/lists/*; rm -rf /root/debs
" > Dockerfile
note: /root/debs contains the builds for Ceph and Ganesha, they also contain a couple of bash scripts we use to control the service, you can view them in the images.
This is the Dokerfile
echo "FROM ubuntu:18.04
COPY image-root /
RUN apt-get update && \
dpkg -iR /root/debs; apt-get install -f -y --no-install-recommends; \
apt-get clean && \
rm -f /var/lib/apt/lists/*; rm -rf /root/debs
" > Dockerfile
note: /root/debs contains the builds for Ceph and Ganesha, they also contain a couple of bash scripts we use to control the service, you can view them in the images.
Last edited on December 8, 2022, 12:31 pm by admin · #5
rhamon
30 Posts
December 8, 2022, 5:29 pmQuote from rhamon on December 8, 2022, 5:29 pmThat's open hand and open source at it's best! Cheers to y'all at PetaSAN.
That's open hand and open source at it's best! Cheers to y'all at PetaSAN.
admin
2,930 Posts
December 8, 2022, 8:49 pmQuote from admin on December 8, 2022, 8:49 pmThanks 🙂
Thanks 🙂
Last edited on December 8, 2022, 8:49 pm by admin · #7
liuskyter
5 Posts
December 9, 2022, 2:16 amQuote from liuskyter on December 9, 2022, 2:16 amThanks for you help!
Thanks for you help!
Last edited on December 9, 2022, 2:19 am by liuskyter · #8
liuskyter
5 Posts
December 9, 2022, 8:26 amQuote from liuskyter on December 9, 2022, 8:26 amDear All:
As Dockerfile describes, 'rm -f /var/lib/apt/lists/*; rm -rf /root/debs', So I can't see the deb package information under/root/debs correctly in Images!
Another, I also want to learn more about " need info on the operation of the service itself and setting up active/active NFS".Is it convenient to open nfs and its dependent source code?
BR
Dear All:
As Dockerfile describes, 'rm -f /var/lib/apt/lists/*; rm -rf /root/debs', So I can't see the deb package information under/root/debs correctly in Images!
Another, I also want to learn more about " need info on the operation of the service itself and setting up active/active NFS".Is it convenient to open nfs and its dependent source code?
BR
admin
2,930 Posts
December 9, 2022, 11:10 amQuote from admin on December 9, 2022, 11:10 amYou can run dpkg -l to get info on installed debs, dpkg -L to list the installed files, dpkg-repack to repack them..etc. the debs are the build of Ceph and Ganesha sources.
In docker file, after installing the debs we delete them + delete current apt repository database (from apt update) to reduce space. It is common to trim your container images to make them small. The PetaSAN nfs container is around 40 MB in size, it is quite amazing if you consider this also includes the core Ubuntu image.
Going into Ceph and Ganesha sources is an open ended thing, i suggest you first look at the Ceph plugin for Ganesha and its design, suggested:
https://www.youtube.com/watch?v=CWDcr0qNqoU
http://www.nfsv4bat.org/Documents/BakeAThon/2018/Active_Active%20NFS%20Server%20Recovery.pdf
https://github.com/nfs-ganesha/nfs-ganesha/tree/next/src/FSAL/FSAL_CEPH
Good luck..
You can run dpkg -l to get info on installed debs, dpkg -L to list the installed files, dpkg-repack to repack them..etc. the debs are the build of Ceph and Ganesha sources.
In docker file, after installing the debs we delete them + delete current apt repository database (from apt update) to reduce space. It is common to trim your container images to make them small. The PetaSAN nfs container is around 40 MB in size, it is quite amazing if you consider this also includes the core Ubuntu image.
Going into Ceph and Ganesha sources is an open ended thing, i suggest you first look at the Ceph plugin for Ganesha and its design, suggested:
https://www.youtube.com/watch?v=CWDcr0qNqoU
http://www.nfsv4bat.org/Documents/BakeAThon/2018/Active_Active%20NFS%20Server%20Recovery.pdf
https://github.com/nfs-ganesha/nfs-ganesha/tree/next/src/FSAL/FSAL_CEPH
Good luck..
Last edited on December 9, 2022, 11:35 am by admin · #10
nfs-ganesha service Dockerfile
liuskyter
5 Posts
Quote from liuskyter on December 8, 2022, 10:58 amI want to learn more ablout nfs-ganesha service with docker, could you provide me the Dockerfile of nfs-ganesha?
I want to learn more ablout nfs-ganesha service with docker, could you provide me the Dockerfile of nfs-ganesha?
liuskyter
5 Posts
Quote from liuskyter on December 8, 2022, 11:00 amBy the way, it's not docker, it's podman.Thank you
By the way, it's not docker, it's podman.Thank you
admin
2,930 Posts
Quote from admin on December 8, 2022, 11:29 amDo you want to know more how we package the container image using Dokerfile, or do you need info on the operation of the service itself and setting up active/active NFS ?
Do you want to know more how we package the container image using Dokerfile, or do you need info on the operation of the service itself and setting up active/active NFS ?
liuskyter
5 Posts
Quote from liuskyter on December 8, 2022, 11:46 amThanks for your quick reply!
As you said, I want to learn more about "how you package the container image using Dokerfile". Could you provide me the Dockerfile and I want to learn more and make a docker image about nfs-ganesha by myself!
Thank you!
Thanks for your quick reply!
As you said, I want to learn more about "how you package the container image using Dokerfile". Could you provide me the Dockerfile and I want to learn more and make a docker image about nfs-ganesha by myself!
Thank you!
admin
2,930 Posts
Quote from admin on December 8, 2022, 12:28 pmThis is the Dokerfile
echo "FROM ubuntu:18.04
COPY image-root /
RUN apt-get update && \
dpkg -iR /root/debs; apt-get install -f -y --no-install-recommends; \
apt-get clean && \
rm -f /var/lib/apt/lists/*; rm -rf /root/debs
" > Dockerfilenote: /root/debs contains the builds for Ceph and Ganesha, they also contain a couple of bash scripts we use to control the service, you can view them in the images.
This is the Dokerfile
echo "FROM ubuntu:18.04
COPY image-root /
RUN apt-get update && \
dpkg -iR /root/debs; apt-get install -f -y --no-install-recommends; \
apt-get clean && \
rm -f /var/lib/apt/lists/*; rm -rf /root/debs
" > Dockerfile
note: /root/debs contains the builds for Ceph and Ganesha, they also contain a couple of bash scripts we use to control the service, you can view them in the images.
rhamon
30 Posts
Quote from rhamon on December 8, 2022, 5:29 pmThat's open hand and open source at it's best! Cheers to y'all at PetaSAN.
That's open hand and open source at it's best! Cheers to y'all at PetaSAN.
admin
2,930 Posts
Quote from admin on December 8, 2022, 8:49 pmThanks 🙂
Thanks 🙂
liuskyter
5 Posts
Quote from liuskyter on December 9, 2022, 2:16 amThanks for you help!
Thanks for you help!
liuskyter
5 Posts
Quote from liuskyter on December 9, 2022, 8:26 amDear All:
As Dockerfile describes, 'rm -f /var/lib/apt/lists/*; rm -rf /root/debs', So I can't see the deb package information under/root/debs correctly in Images!
Another, I also want to learn more about " need info on the operation of the service itself and setting up active/active NFS".Is it convenient to open nfs and its dependent source code?
BR
Dear All:
As Dockerfile describes, 'rm -f /var/lib/apt/lists/*; rm -rf /root/debs', So I can't see the deb package information under/root/debs correctly in Images!
Another, I also want to learn more about " need info on the operation of the service itself and setting up active/active NFS".Is it convenient to open nfs and its dependent source code?
BR
admin
2,930 Posts
Quote from admin on December 9, 2022, 11:10 amYou can run dpkg -l to get info on installed debs, dpkg -L to list the installed files, dpkg-repack to repack them..etc. the debs are the build of Ceph and Ganesha sources.
In docker file, after installing the debs we delete them + delete current apt repository database (from apt update) to reduce space. It is common to trim your container images to make them small. The PetaSAN nfs container is around 40 MB in size, it is quite amazing if you consider this also includes the core Ubuntu image.
Going into Ceph and Ganesha sources is an open ended thing, i suggest you first look at the Ceph plugin for Ganesha and its design, suggested:
https://www.youtube.com/watch?v=CWDcr0qNqoU
http://www.nfsv4bat.org/Documents/BakeAThon/2018/Active_Active%20NFS%20Server%20Recovery.pdf
https://github.com/nfs-ganesha/nfs-ganesha/tree/next/src/FSAL/FSAL_CEPH
Good luck..
You can run dpkg -l to get info on installed debs, dpkg -L to list the installed files, dpkg-repack to repack them..etc. the debs are the build of Ceph and Ganesha sources.
In docker file, after installing the debs we delete them + delete current apt repository database (from apt update) to reduce space. It is common to trim your container images to make them small. The PetaSAN nfs container is around 40 MB in size, it is quite amazing if you consider this also includes the core Ubuntu image.
Going into Ceph and Ganesha sources is an open ended thing, i suggest you first look at the Ceph plugin for Ganesha and its design, suggested:
https://www.youtube.com/watch?v=CWDcr0qNqoU
http://www.nfsv4bat.org/Documents/BakeAThon/2018/Active_Active%20NFS%20Server%20Recovery.pdf
https://github.com/nfs-ganesha/nfs-ganesha/tree/next/src/FSAL/FSAL_CEPH
Good luck..